Add support for Content Security Policy (fixes #90)

This commit is contained in:
daudix
2024-10-05 22:45:06 +03:00
parent aa43730750
commit e2c3f7581b
6 changed files with 72 additions and 1 deletions

View File

@ -7,6 +7,9 @@
{%- if config.extra.accent_color_dark %}
<meta name="theme-color" content="{{ config.extra.accent_color_dark | safe }}" media="(prefers-color-scheme:dark)" />
{%- endif %}
{%- if config.extra.csp %}
{%- include "partials/csp.html" %}
{%- endif %}
<title>{% include "partials/title.html" %}</title>
<link rel="canonical" href="{{ current_url | default(value='/') | safe }}" />