all repos — zola-bearblog @ f51202d961e6d2337a96ef3552c4efced1fe2beb

Port of bear blog theme to zola

Allow end-user to disable CSP header meta tags without editing theme

Alan Pearce
commit

f51202d961e6d2337a96ef3552c4efced1fe2beb

parent

093ac10f7e5c9bd40e9def573c654069e4cba1a9

1 file changed, 6 insertions(+), 2 deletions(-)

changed files
M templates/base.htmltemplates/base.html
@@ -1,7 +1,9 @@
<!DOCTYPE html> <html lang="{{ lang | default(value="en-US" ) }}"> <head> - {% include "security_tags.html" ignore missing %} + {%- if config.webserver_sends_csp_headers %} + {%- include "security_tags.html" ignore missing %} + {%- endif %} <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> {% include "favicon.html" ignore missing -%}
@@ -13,7 +15,9 @@ {% block rss -%}
<link rel="alternate" type={% if config.feed_filename == "atom.xml" %}"application/atom+xml"{% else %}"application/rss+xml"{% endif %} title="{{ config.title }}" href="{{ get_url(path=config.feed_filename) | safe }}"> {%- endblock -%} {%- endif %} - {% include "style.html" ignore missing -%} + <style> + {%- include "style.css.html" ignore missing -%} + </style> {% include "custom_head.html" ignore missing -%} </head> <body>