Files
i2p.www/i2p2www/pages/blog/latest.html
str4d 8e09d84d09 Reworked meta dict usage to make blog templates easier to understand
Displayed dates in the blog templates are now all taken from meta['date'],
which can be set by the 'date' metatag in the blog post but defaults to the
date obtained from the post's slug (i.e. what subfolder the post is in).
2013-01-16 01:41:24 +00:00

7 lines
294 B
HTML

<ul>
{% for slug, post in blog_posts -%}
<li>{{ post.date }} - <a href="{{ url_for('blog_post', slug=slug) }}">{{ post.title }}</a></li>
{%- endfor %}
<li><a href="{{ url_for('blog_index', lang=g.lang) }}"><em>More blog posts&hellip;</em></a></li>
</ul>