
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).
7 lines
294 B
HTML
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…</em></a></li>
|
|
</ul>
|