all repos — zola-bearblog @ 14ecd3b35136baebddeb3bcab390d7afedf13545

Port of bear blog theme to zola

Tera 2 updates fix: use safe navigation for favicon

adidalal
commit

14ecd3b35136baebddeb3bcab390d7afedf13545

parent

17b23b2cc15eeb355d4d8541e4fe02a5983f1e56

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>