diff --git a/templates/partials/header.html b/templates/partials/header.html index d391836..67495e2 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -1,5 +1,10 @@ + + {%- if macros_settings::evaluate_setting_priority(setting="enable_csp", page=page | default(value=""), section=section | default(value=""), default_global_value="true") == "true" -%} + {%- include "partials/content_security_policy.html" -%} + {%- endif -%} + @@ -130,10 +135,6 @@ - {%- if macros_settings::evaluate_setting_priority(setting="enable_csp", page=page | default(value=""), section=section | default(value=""), default_global_value="true") == "true" -%} - {%- include "partials/content_security_policy.html" -%} - {%- endif -%} - {%- if config.extra.theme_switcher and config.extra.theme_switcher == true -%} {# If JavaScript is disabled, hide the button. #}