Browse code

Adds prev/next link below post, fixes #218

Frederic Hemberger authored on 16/10/2011 at 12:27:21
Showing 2 changed files
... ...
@@ -73,7 +73,9 @@ article {
73 73
     @extend .sans;
74 74
     p.meta {
75 75
       margin-bottom: .8em;
76
-      font-size: .85em;
76
+      font-size: .85em
77
+      clear: both;
78
+      overflow: hidden;
77 79
     }
78 80
     .byline + time:before, time +time:before, .comments:before, .byline ~ .categories:before {
79 81
       @extend .separator;
... ...
@@ -15,6 +15,14 @@ single: true
15 15
     {% unless page.sharing == false %}
16 16
       {% include post/sharing.html %}
17 17
     {% endunless %}
18
+    <p class="meta">
19
+      {% if page.previous.url %} 
20
+        <a class="basic-alignment left" href="{{page.previous.url}}" title="Previous Post: {{page.previous.title}}">&laquo; {{page.previous.title}}</a>
21
+      {% endif %}
22
+      {% if page.next.url %} 
23
+        <a class="basic-alignment right" href="{{page.next.url}}" title="next Post: {{page.next.title}}">{{page.next.title}} &raquo;</a>
24
+      {% endif %}
25
+    </p>
18 26
   </footer>
19 27
 </article>
20 28
 {% if site.disqus_short_name and page.comments == true %}