Mercurial > piecrust2
changeset 140:63798c9e5a55
Display page tags with default theme.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 29 Nov 2014 15:33:26 -0800 |
parents | 2889d85b1d32 |
children | 666ee97e77a9 |
files | piecrust/resources/theme/templates/default.html |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/resources/theme/templates/default.html Sat Nov 29 15:33:05 2014 -0800 +++ b/piecrust/resources/theme/templates/default.html Sat Nov 29 15:33:26 2014 -0800 @@ -74,6 +74,14 @@ {% if page.title %} <h1 class="page-title">{{ page.title }}</h1> {% endif %} + {% if page.tags %} + <div class="tags"> + <span>Posted in</span> + {% for t in page.tags %} + <span class="tag"><a href="{{ pctagurl(t) }}">{{t}}</a>{% if not loop.last %}, {% endif %}</span> + {% endfor %} + </div> + {% endif %} {{ content|raw }} {% endblock %}