Permalink
Browse files

More pagination related tweaks.

  • Loading branch information...
Erica Kwan
Erica Kwan committed Jan 31, 2010
1 parent c149fda commit 4b2696f291727384c72ea10eb220124a49066877
Showing with 27 additions and 28 deletions.
  1. +1 −15 _layouts/default.html
  2. +1 −1 _layouts/post.html
  3. +25 −12 index.html
View
@@ -15,21 +15,7 @@
</div>
<div id="content">
<div id="maincol">
{% for post in paginator.posts %}
{% include post_item.html %}
{% endfor %}
<div>
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a class="pagination newer" href="/" title="newer"> Newer &rarr;</a>
{% else %}
<a class="pagination older" href="page{{ paginator.previous_page }}/index.html" title="newer"> Newer &rarr;</a>
{% endif %}
{% endif %}
{% if paginator.next_page %}
<a class="pagination" href="page{{ paginator.next_page }}/index.html" title="older">&larr; Older</a>
{% endif %}
</div>
{{ content }}
</div>
<div id="subcol">
<div id="about">
View
@@ -8,7 +8,7 @@ <h1>{{ page.title }}</h1>
{{ content }}
</p>
<p>
{{ page.date | date: "%B %d, %Y" }}
{{ post.date | date: "%B %d, %Y" }}
</p>
<div id="disqus_thread"></div><script type="text/javascript" src="http://disqus.com/forums/dumbbunny/embed.js"></script><noscript><a href="http://disqus.com/forums/dumbbunny/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
View
@@ -2,15 +2,28 @@
layout: default
title: Dumb As a Bunny
---
{% for post in site.posts %}
<div class="post">
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
<p>
{{ post.content }}
</p>
<p>
{{ post.date | date: "%B %d, %Y" }}
</p>
<a href="{{ post.url }}#disqus_thread">Comments</a>
</div>
{% endfor %}
{% for post in paginator.posts %}
<div class="post">
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
<p>
{{ post.content }}
</p>
<p>
{{ post.date | date: "%B %d, %Y" }}
</p>
<a href="{{ post.url }}#disqus_thread">Comments</a>
</div>
{% endfor %}
<div>
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a class="pagination newer" href="/" title="newer"> Newer &rarr;</a>
{% else %}
<a class="pagination older" href="page{{ paginator.previous_page }}/index.html" title="newer"> Newer &rarr;</a>
{% endif %}
{% endif %}
{% if paginator.next_page %}
<a class="pagination" href="page{{ paginator.next_page }}/index.html" title="older">&larr; Older</a>
{% endif %}
</div>

0 comments on commit 4b2696f

Please sign in to comment.