aboutsummaryrefslogtreecommitdiff
path: root/.themes/classic/source/index.html
blob: 5a88f720a81d74f459d9e9d16a1ea6068f018442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
layout: default
blog_index: true
---
<div class="blog-index">
{% assign index = true %}
{% for post in paginator.posts %}
{% assign content = post.content %}
  <article>
    {% include article.html %}
  </article>
{% endfor %}
<nav role="pagination">
  <div>
    {% if paginator.next_page %}
      <a class="prev" href="/page{{paginator.next_page}}/">&larr; Older</a>
    {% endif %}
    <a href="/blog/archives">Blog Archives</a>
    {% if paginator.previous_page and paginator.previous_page > 1 %}
      <a class="next" href="/page{{paginator.previous_page}}/">Newer &rarr;</a>
    {% elsif paginator.previous_page %}
      <a class="next" href="/">Newer &rarr;</a>
    {% endif %}
  </div>
</nav>
{% if site.disqus_short_name %}
<script type="text/javascript">
    var disqus_shortname = '{{ site.disqus_short_name }}';
    (function () {
      var s = document.createElement('script'); s.async = true;
      s.type = 'text/javascript';
      s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
      (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
    }());
</script>
{% endif %}
</div>