Commits

Andrey Vlasovskikh committed f2f9871

Previous and next post links in posts

Comments (0)

Files changed (2)

doc/_layouts/post.html

 ---
 
 <section class="hentry">
-  <div class="published">{{ page.date.strftime('%Y-%m-%d') }}</div>
+  <div class="meta">
+    <div class="navigation">
+      {% if page.previous %}
+        <a href="{{ page.previous.url }}">« Previous</a>
+      {% endif %}
+      {% if page.next %}
+        <a href="{{ page.next.url }}">Next »</a>
+      {% endif %}
+    </div>
+    <div class="published">{{ page.date.strftime('%Y-%m-%d') }}</div>
+  </div>
   <h1>{{ page.title }}</h1>
   {{ content }}
   {% include 'buttons.html' %}

doc/media/default.css

     margin: 1em 0;
 }
 
+.hentry .navigation {
+    float: right;
+    text-align: right;
+    margin-bottom: 0.2em;
+}
+
 .hentry .published {
     float: right;
+    clear: both;
     color: #666666;
 }