diff options
Diffstat (limited to 'templates/index.html')
| -rw-r--r-- | templates/index.html | 48 |
1 files changed, 28 insertions, 20 deletions
diff --git a/templates/index.html b/templates/index.html index f57baf5..11ff2d2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,31 +2,39 @@ {% block content %} <h1 id="page-title"> - {{ section.title }} + {{ section.title }} </h1> <p>{{ section.description }}</p> <nav> - <table> - <caption> - Posts - </caption> - <thead> - <tr> - <td>Title</td> - <td>Date</td> - </tr> - </thead> - <tbody> - {% for page in section.pages %} - <tr> - <td><a href="{{ page.permalink | safe }}">{{page.title}}</a></td> - <td>{{ page.date }}</td> - </tr> - {% endfor %} - </tbody> - </table> + <table> + <caption> + Posts + </caption> + <thead> + <tr> + <td>Title</td> + <td>Date</td> + </tr> + </thead> + <tbody> + {% for page in paginator.pages %} + <tr> + <td><a href="{{ page.permalink | safe }}">{{page.title}}</a></td> + <td>{{ page.date }}</td> + </tr> + {% endfor %} + </tbody> + </table> + <nav class="pagination"> + {% if paginator.previous %} + <a class="previous" href="{{ paginator.previous }}">‹ Previous</a> + {% endif %} + {% if paginator.next %} + <a class="next" href="{{ paginator.next }}">Next ›</a> + {% endif %} + </nav> </nav> {% endblock %}
\ No newline at end of file |
