Implement new sort_by filters

This commit is contained in:
theshka 2015-11-29 20:15:47 -06:00
parent c4f9eb8d4e
commit 99283e90a4

View file

@ -6,7 +6,7 @@
<div class="container">
<div class="row">
<div class="col-sm-8">
{% for page in pages %}
{% for page in pages|sort_by("time")|reverse %}
{% if page.id starts with "blog/" %}
<div class="blog-post">
<h2 class="blog-post-title"><a href="{{ page.url }}">{{ page.title }}</a></h2>