all repos — zola-bearblog @ 18a135696a6f5a02a641a16c2881a2694f26ce1a

Port of bear blog theme to zola

Merge pull request 'Upgrade to latest zola & Tera 2' (#41) from adidalal/zola-bearblog:tera-v2 into main Reviewed-on: https://codeberg.org/alinnow/zola-bearblog/pulls/41

Alin
commit

18a135696a6f5a02a641a16c2881a2694f26ce1a

parent

593a8bb3f16404389c85dcec544d6dc188ad3a39

1 file changed, 12 insertions(+), 12 deletions(-)

changed files
M templates/base.htmltemplates/base.html
@@ -1,31 +1,31 @@
<!DOCTYPE html> -<html lang="{{ lang | default(value="en-US" ) }}"> +<html lang="{{ lang or config.default_language or "en" }}"> <head> - {%- if config.webserver_sends_csp_headers %} - {%- include "security_tags.html" ignore missing %} + {%- if config.extra?.webserver_sends_csp_headers %} + {%- include "security_tags.html" %} {%- endif %} <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - {% include "favicon.html" ignore missing -%} + {% include "favicon.html" -%} <title>{%- block title %}{{ config.title }}{%- endblock %}</title> - {% include "seo_tags.html" ignore missing -%} + {% include "seo_tags.html" -%} <meta name="referrer" content="strict-origin-when-cross-origin"> + {% block rss -%} {%- if config.generate_feeds %} - {% block rss -%} {%- for feed_filename in config.feed_filenames %} <link rel="alternate" type={% if feed_filename == "atom.xml" %}"application/atom+xml"{% else %}"application/rss+xml"{% endif %} title="{{ config.title }}" href="{{ get_url(path=feed_filename) | safe }}"> {%- endfor -%} - {%- endblock -%} {%- endif %} + {%- endblock -%} <style> - {% include "style.css.html" ignore missing %} + {% include "style.css.html" %} </style> - {%- include "custom_head.html" ignore missing %} + {%- include "custom_head.html" %} </head> <body> - {% include "header.html" ignore missing %} + {%- include "header.html" %} {%- block main -%}{%- endblock -%} - {%- include "footer.html" ignore missing -%} - {%- include "custom_body.html" ignore missing -%} + {%- include "footer.html" -%} + {%- include "custom_body.html" -%} </body> </html>