Remove some excessive newlines from generated HTML

This commit is contained in:
Philipp Oppermann
2020-02-17 11:22:49 +01:00
parent 127f446856
commit 0e3635f98b
2 changed files with 18 additions and 18 deletions

View File

@@ -24,21 +24,21 @@
</div>
<div>
{% set chapter = "none" %}
{% for post in posts %}
{% if post.extra["chapter"] %}
{% if post.extra["chapter"] != chapter %}
{%- set chapter = "none" -%}
{%- for post in posts -%}
{%- if post.extra["chapter"] -%}
{%- if post.extra["chapter"] != chapter -%}
{# Begin new chapter #}
{% set_global chapter = post.extra["chapter"] %}
{%- set_global chapter = post.extra["chapter"] -%}
</div>
<div id="{{chapter | slugify}}" class="post-category {{chapter | slugify}}">{{ chapter }}</div>
<div class="posts {{chapter | slugify}}">
{% endif %}
{% endif %}
{%- endif -%}
{%- endif -%}
{{ macros::post_link(page=post) }}
{% endfor %}
{%- endfor -%}
</div>
<div class="posts subscribe">