diff options
author | Alan Pearce | 2024-05-29 16:01:03 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-29 16:01:03 +0200 |
commit | 99423f57f79499f13d021970c1efb4529072006b (patch) | |
tree | aab3b0280ba6eabddb8ce8589538f9efb080a271 /templates/page.html | |
parent | dea01a9d2d2853af740aff8d11f573a70e7c4962 (diff) | |
download | zola-bearblog-99423f57f79499f13d021970c1efb4529072006b.tar.lz zola-bearblog-99423f57f79499f13d021970c1efb4529072006b.tar.zst zola-bearblog-99423f57f79499f13d021970c1efb4529072006b.zip |
improve whitespace generation in output files
Diffstat (limited to 'templates/page.html')
-rw-r--r-- | templates/page.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/page.html b/templates/page.html index cb33ab5..a51d965 100644 --- a/templates/page.html +++ b/templates/page.html @@ -4,7 +4,7 @@ {% block title %}{{ page.title }} | {{ super() }}{% endblock %} {% block main %} - {%- if not page.extra.menu %} + {%- if not page.extra.menu -%} <h1>{{ page.title }}</h1> {%- if page.date %} <p> @@ -17,9 +17,9 @@ {%- endif %} {%- endif %} {%- if config.extra.table_of_contents.show and not page.extra.hide_table_of_contents and page.toc %} - <details {%if config.extra.table_of_contents.visible_on_load %}open{% endif %}> + <details {% if config.extra.table_of_contents.visible_on_load %}open{% endif %}> <summary>{{ trans(key="table_of_contents", lang=lang) }}</summary> - {{ macros::table_of_contents(toc=page.toc, max_level=config.extra.table_of_contents.max_level) }} + {{- macros::table_of_contents(toc=page.toc, max_level=config.extra.table_of_contents.max_level) | indent() | safe() }} </details> {%- endif %} <main> |