Merge pull request #14 from denmch/patch-1

Add `reversed` attribute to posts list
master
Zach Leatherman 2018-09-04 15:26:30 -05:00 committed by GitHub
commit d0709479ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<ol class="postlist" style="counter-reset: start-from {{ postslist.length + 1 }}">
<ol reversed class="postlist" style="counter-reset: start-from {{ postslist.length + 1 }}">
{% for post in postslist | reverse %}
<li class="postlist-item{% if post.url == url %} postlist-item-active{% endif %}">
<a href="{{ post.url | url }}" class="postlist-link">{% if post.data.title %}{{ post.data.title }}{% else %}<code>{{ post.url }}</code>{% endif %}</a>