MarseyWorld/files/templates/root.html

33 lines
1.3 KiB
HTML

{% set root_scope = namespace() %}
{% block template_config %}
{% set root_scope.js = true %}
{% set root_scope.include_user_css = true %}
{% set root_scope.include_seo = true %}
{% set root_scope.include_cf_2fa_verify = false %}
{% endblock %}
{%- import 'util/macros.html' as macros with context -%}
{%- import 'util/html_head.html' as html_head with context -%}
{%- if request.path == '/' -%}
{%- set csp=CONTENT_SECURITY_POLICY_HOME -%}
{%- endif -%}
<!DOCTYPE html>
<html lang="en">
<head>
{% block head %}
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="{{csp | default(CONTENT_SECURITY_POLICY_DEFAULT, true) | safe}}">
{% block title %}<title>{% block pagetitle %}if you see this pls report it as a bug &lt;3{% endblock %} - {{SITE_NAME}}</title>{% endblock %}
{% set page_title = self.pagetitle() %}
{{html_head.page_meta(page_title or none)}}
{{html_head.javascript() if root_scope.js}}
{{html_head.stylesheets(root_scope.include_user_css)}}
{{html_head.seo() if root_scope.include_seo}}
{{html_head.cf_2fa_verify() if root_scope.include_2fa_verify}}
{% block head_final %}{% endblock %}
{% endblock %}
</head>
<body {% block body_attributes %}id="{%block pagetype %}{% endblock %}"{% endblock %}>
{% block body required %}{% endblock %}
</body>
</html>