Merge pull request #14 from denmch/patch-1
Add `reversed` attribute to posts list
This commit is contained in:
commit
d0709479ab
@ -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 %}
|
{% for post in postslist | reverse %}
|
||||||
<li class="postlist-item{% if post.url == url %} postlist-item-active{% endif %}">
|
<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>
|
<a href="{{ post.url | url }}" class="postlist-link">{% if post.data.title %}{{ post.data.title }}{% else %}<code>{{ post.url }}</code>{% endif %}</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user