all repos — zola-bearblog @ 402d85094185554d6150d6dfd6e76683abf7b663

Port of bear blog theme to zola

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

Alan Pearce
commit

402d85094185554d6150d6dfd6e76683abf7b663

parent

a803508850bb890de5caabda9bbc1552666da6f2

1 file changed, 3 insertions(+), 9 deletions(-)

changed files
M templates/base.htmltemplates/base.html
@@ -16,15 +16,9 @@ {% include "style.html" ignore missing -%}
{% 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>