diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-08-15 23:59:28 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-08-16 00:43:22 -0400 |
commit | 1c555116be19efe29d19d19286abbb21085a5756 (patch) | |
tree | c843bf8683b1c0dcd8a9467663f87a9e2b6f569d /.themes | |
parent | a5f87149fec051cbc395bc645de71469361f8c78 (diff) | |
download | my_new_personal_website-1c555116be19efe29d19d19286abbb21085a5756.tar.xz my_new_personal_website-1c555116be19efe29d19d19286abbb21085a5756.zip |
Added support for pagination with a blog index in any directory (helps with landing pages). Added configuration for pagination directory base
Diffstat (limited to '')
-rw-r--r-- | .themes/classic/source/index.html | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/.themes/classic/source/index.html b/.themes/classic/source/index.html index fa5310a9..e7e96956 100644 --- a/.themes/classic/source/index.html +++ b/.themes/classic/source/index.html @@ -2,4 +2,41 @@ layout: default --- -{% include blog_index.html %} +<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="{{paginator.next_page}}">← Older</a> + {% endif %} + <a href="/blog/archives">Blog Archives</a> + {% if paginator.previous_page %} + <a class="next" href="{{paginator.previous_page}}">Newer →</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> +<aside role=sidebar> + {% if site.blog_index_asides.size %} + {% include_array blog_index_asides %} + {% else %} + {% include_array default_asides %} + {% endif %} +</aside> |