{% macro html_head(js, include_seo, include_user_css, csp, title2, author, extra_css, include_2fa_verify, include_seo2, include_neko_debootstrap) %} {# submission.py does a lot of stupid stuff with the title and we don't want to override that #} {# remember, this is very temporary #} {% if js %} {{javascript()}} {% endif %} {{meta_tags_1(csp, author)}} {{stylesheets(include_user_css, extra_css, include_neko_debootstrap)}} {% if title2 %} {{title2 | default(SITE_NAME, true)}} - {{SITE_NAME}} {{meta_tags_2(title2, author)}} {% elif not include_seo2 %} {% block title %} {% block pagetitle %}{{SITE_NAME}}{% endblock %} {{meta_tags_2(self.pagetitle(), author)}} {% endblock %} {% else %} {{self.title()}} {% endif %} {% if include_seo %} {{seo()}} {% endif %} {% if include_2fa_verify %} {{cf_2fa_verify()}} {% endif %} {% if 'chat' in request.path %} {% if SITE == 'localhost' %} {% else %} {% endif %} {% endif %} {% endmacro %} {% macro cf_2fa_verify() %} {% if SITE == 'rdrama.net' %} {% elif SITE == 'watchpeopledie.tv' %} {% elif SITE == 'pcmemes.net' %} {% endif %} {% endmacro %} {% macro javascript() %} {% endmacro %} {% macro meta_tags_1(csp, author, exclude_author) %} {% if not exclude_author %} {% endif %} {% endmacro %} {% macro meta_tags_2(title, author) %} {% endmacro %} {% macro stylesheets(include_user_css, extra_css, include_neko_debootstrap) %} {% if include_neko_debootstrap %} {% else %} {% endif %} {% if v %} {% if v.agendaposter %} {% endif %} {% if include_user_css %} {% if v.css and not request.path.startswith('/settings/css') %} {% endif %} {% if v.themecolor == '30409f' %} {% endif %} {% else %} {{default_theme()}} {% endif %} {% else %} {{default_theme()}} {% endif %} {% if request.path.endswith('/catalog') %} {% endif %} {% if sub and sub.css and not request.path.endswith('settings') and not request.values.get('nocss') %} {% endif %} {% if SITE_NAME == 'rDrama' %} {% endif %} {{extra_css}} {% endmacro %} {% macro default_theme() %} {% endmacro %} {% macro seo() %} {% endmacro %}