about summary refs log tree commit diff stats
path: root/templates/base.html
diff options
context:
space:
mode:
authorAlan Pearce2023-04-26 09:08:15 +0200
committerAlan Pearce2023-04-26 09:08:15 +0200
commitcdd10696fcbc40078f721f252a8283e40e064f73 (patch)
tree57af6ba2835dc85e4baf512c4f0c9004eaf09654 /templates/base.html
parenta803508850bb890de5caabda9bbc1552666da6f2 (diff)
downloadzola-bearblog-cdd10696fcbc40078f721f252a8283e40e064f73.tar.lz
zola-bearblog-cdd10696fcbc40078f721f252a8283e40e064f73.tar.zst
zola-bearblog-cdd10696fcbc40078f721f252a8283e40e064f73.zip
Move header/footer/main elements into child templates
The <content> tag is not meant for normal HTML, but rather the Shadow
DOM, therefore I replaced it with <main>

For consistency's sake I moved <header> and <footer> into the child
templates as well
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html12
1 files changed, 3 insertions, 9 deletions
diff --git a/templates/base.html b/templates/base.html
index 70b7224..973abdd 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -16,15 +16,9 @@
   {% include "custom_head.html" ignore missing -%}
 </head>
 <body>
-  <header>
-    {% include "header.html" ignore missing -%}
-  </header>
-  <main>
-    {% block main %}{%- endblock -%}
-  </main>
-  <footer>
-    {% include "footer.html" ignore missing -%}
-  </footer>
+  {% include "header.html" ignore missing -%}
+  {% block main %}{%- endblock -%}
+  {% include "footer.html" ignore missing -%}
   {% include "custom_body.html" ignore missing -%}
 </body>
 </html>