Because the indentation (obviously) affects stuff inside <pre> tags. All
page/article content is now unindented and wrapped in a HTML comment to
make it better visible in the source.
I don't expect article summaries to have <pre> tags inside, so that's a
non-issue.
{{ header()|indent(8) }}
{% if loop.first and articles_page.number == 1 %}
<div class="m-clearfix-l"></div>
- {{ article.content|indent(8) }}
+<!-- content -->
+{{ article.content }}
+<!-- /content -->
{% endif %}
{% macro footer() %}{% include "article_footer.html" %}{% endmacro %}
{{ footer()|indent(8) }}
<div class="m-container m-nopady" id="m-container-inflatable">
<div class="m-row">
<div class="m-col-m-10 m-push-m-1 m-nopady">
- {{ article.content }}
+<!-- content -->
+{{ article.content }}
+<!-- /content -->
</div>
</div>
</div>
{% macro header() %}{% include "article_header.html" %}{% endmacro %}
{{ header()|indent(6) }}
<div class="m-clearfix-l"></div>
- {{ article.content|indent(6) }}
+<!-- content -->
+{{ article.content }}
+<!-- /content -->
{% macro footer() %}{% include "article_footer.html" %}{% endmacro %}
{{ footer()|indent(6) }}
</article>
<div class="m-row">
<div class="m-col-l-10 m-push-l-1">
<h1>{{ page.title }}</h1>
- {{ page.content|indent(6) }}
+<!-- content -->
+{{ page.content }}
+<!-- /content -->
</div>
</div>
</article>