about summary refs log tree commit diff stats
path: root/templates/page.html
diff options
context:
space:
mode:
authorAlan Pearce2024-05-29 16:01:03 +0200
committerAlan Pearce2024-05-29 16:01:03 +0200
commit99423f57f79499f13d021970c1efb4529072006b (patch)
treeaab3b0280ba6eabddb8ce8589538f9efb080a271 /templates/page.html
parentdea01a9d2d2853af740aff8d11f573a70e7c4962 (diff)
downloadzola-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.html6
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>