Files
i2p.www/i2p2www/pages/blog/index.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

31 lines
850 B
HTML

{% extends "global/layout.html" %}
{% block title %}Blog Index{% endblock %}
{% block headextra %}
<link href="{{ url_for('blog_atom', lang=g.lang) }}" type="application/atom+xml" rel="alternate" title="I2P Blog ATOM Feed" />
{%- endblock %}
{% block content %}
<p>Some descriptive text.</p>
<ul id="posts">
{% for (slug, post) in posts %}
<li>
<article>
<header>
<a href="{{ url_for('blog_post', slug=slug) }}">{{ post.title }}</a>
</header>
{%- if post.excerpt %}
<p>{{ post.excerpt }}</p>
{%- endif %}
<footer>
<ul>
<li>{{ post.date }}</li>
<li>{{ post.author }}</li>
</ul>
</footer>
</article>
</li>
{% endfor %}
</ul>
{%- from "global/macros" import render_pagination with context -%}
{{ render_pagination(pagination) | safe }}
{% endblock %}