forked from blek/world
sort the blog posts by date
This commit is contained in:
parent
a4c4324538
commit
27e97907d0
|
@ -15,7 +15,7 @@
|
||||||
<h2>Posts for {{ year }}</h2>
|
<h2>Posts for {{ year }}</h2>
|
||||||
|
|
||||||
<ul style='list-style:none;text-align:left;padding-left:0'>
|
<ul style='list-style:none;text-align:left;padding-left:0'>
|
||||||
{% for post in posts %}
|
{% for post in posts | sort(attribute="date") | reverse %}
|
||||||
<li>
|
<li>
|
||||||
<h3><a href="{{ post.permalink }}">{{ post.title }}</a></h3>
|
<h3><a href="{{ post.permalink }}">{{ post.title }}</a></h3>
|
||||||
<p style='margin-bottom:0'>{{ post.description }}</p>
|
<p style='margin-bottom:0'>{{ post.description }}</p>
|
||||||
|
@ -32,4 +32,4 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
Loading…
Reference in New Issue