# HG changeset patch # User Ludovic Chabant # Date 1425261610 28800 # Node ID 9cc91a3d68620fc44fcd8eb0c24bbc5ea7ea43bc # Parent 1163bd034dc5ae63a88270d2ba2527edc26c87e4 theme: Fix the default theme's templates after changes in Jinja's wrapper. diff -r 1163bd034dc5 -r 9cc91a3d6862 piecrust/resources/theme/templates/default.html --- a/piecrust/resources/theme/templates/default.html Sun Mar 01 17:59:26 2015 -0800 +++ b/piecrust/resources/theme/templates/default.html Sun Mar 01 18:00:10 2015 -0800 @@ -77,20 +77,20 @@ {% if page.tags %}
Posted in - {% for t in page.tags %} - {{t}}{% if not loop.last %}, {% endif %} - {% endfor %} + {% for t in page.tags -%} + {{t}}{% if not loop.last %}, {% endif %} + {%- endfor %}
{% endif %} - {{ content|raw }} + {{ content|safe }} {% endblock %} diff -r 1163bd034dc5 -r 9cc91a3d6862 piecrust/resources/theme/templates/partial_post.html --- a/piecrust/resources/theme/templates/partial_post.html Sun Mar 01 17:59:26 2015 -0800 +++ b/piecrust/resources/theme/templates/partial_post.html Sun Mar 01 18:00:10 2015 -0800 @@ -4,9 +4,9 @@ {{ post.date }} {% if post.tags %} in - {% for t in post.tags %} + {% for t in post.tags -%} {{ t }}{% if not loop.last %}, {% endif %} - {% endfor %} + {%- endfor %} {% endif %} {% if post.category %} | {{ post.category }} @@ -14,6 +14,6 @@
- {{ post.content|raw }} + {{ post.content|safe }}