MarseyWorld/files/templates/root.html

53 lines
1.9 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 -%}
<!DOCTYPE html>
<html lang="en"
{%- if IS_DKD() and not (v and v.theme == 'light') -%}
style="--primary:#2AAA8A"
{%- elif not IS_FISTMAS() -%}
style="--primary:#{{v.themecolor if v else DEFAULT_COLOR}}"
{%- endif -%}
>
<head>
{% block head %}
<meta charset="utf-8">
{% block title %}<title>{% block pagetitle %}if you see this pls report it as a bug &lt;3{% endblock %} - {{SITE_NAME}}</title>{% endblock %}
{{html_head.page_meta(self.pagetitle() 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 %}>
{% if v %}
<input id="vid" hidden value="{{v.id}}">
{% else %}
<input id="vid" hidden value="">
{% endif %}
<input hidden id="gnonce" value="{{g.nonce}}">
<input hidden id="gbrowser" value="{{g.browser}}">
<input hidden id="IMAGE_FORMATS" value="{{IMAGE_FORMATS}}">
<input hidden id="approved_embed_hosts" value="{{approved_embed_hosts}}">
<script src="{{'js/top.js' | asset}}"></script>
{% block body required %}{% endblock %}
{{html_head.stylesheets_lower()}}
<script defer src="{{'js/bottom.js' | asset}}"></script>
{% if SITE_NAME == 'rDrama' %}
<div id="marseko"></div>
<script defer src="{{'js/marseko.js' | asset}}"></script>
{% endif %}
</body>
</html>