add neko debootstrap flag to html_head.html

this is awful but i made this a macro for some reason i have no idea why
master
justcool393 2022-10-29 22:11:05 -05:00 committed by GitHub
parent 74d3c325d4
commit 016e9b66a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{% macro html_head(js, include_seo, include_user_css, csp, title2, author, extra_css, include_2fa_verify, include_seo2) %}
{% 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 #}
<head>
@ -6,7 +6,7 @@
{{javascript()}}
{% endif %}
{{meta_tags_1(csp, author)}}
{{stylesheets(include_user_css, extra_css)}}
{{stylesheets(include_user_css, extra_css, include_neko_debootstrap)}}
{% if title2 %}
<title>{{title2 | default(SITE_NAME, true)}} - {{SITE_NAME}}</title>
{{meta_tags_2(title2, author)}}
@ -78,8 +78,11 @@
<meta name="twitter:url" content="{{request.full_path}}">
{% endmacro %}
{% macro stylesheets(include_user_css, extra_css) %}
{% macro stylesheets(include_user_css, extra_css, include_neko_debootstrap) %}
<link rel="stylesheet" href="{{'css/main.css' | asset}}">
{% if include_neko_debootstrap %}
<link rel="stylesheet" href="{{'css/main-dev.css' | asset}}">
{% endif %}
<link id="favicon" rel="icon" type="image/webp" href="{{'icon.webp' | asset_siteimg}}">
{% if v %}
<style>:root{--primary:#{{v.themecolor}}}</style>
@ -272,4 +275,4 @@
sizes="2737x2048"
href="{{'icon.webp' | asset_siteimg}}"
>
{% endmacro %}
{% endmacro %}