Mercurial > piecrust2
view piecrust/resources/theme/templates/partial_post.html @ 142:0bdd938d6b9f
Better date/time handling for pages:
- Date can be specified in the page config.
- Fall back to timestamp 0 (which is fixed) instead of the timestamp of
the file (which could vary).
Sources can return additional config values to merge with the page's
YAML front matter.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 29 Nov 2014 18:33:29 -0800 |
parents | 485682a6de50 |
children | 9cc91a3d6862 |
line wrap: on
line source
<article> <header> <h2><a href="{{ post.url }}">{{ post.title }}</a></h2> <small>{{ post.date }} {% if post.tags %} in {% for t in post.tags %} <a href="{{ pctagurl(t) }}">{{ t }}</a>{% if not loop.last %}, {% endif %} {% endfor %} {% endif %} {% if post.category %} | <a href="{{ pccaturl(post.category) }}">{{ post.category }}</a> {% endif %} </small> </header> <section> {{ post.content|raw }} </section> </article>