forked from rDrama/rDrama
1
0
Fork 0

html head: fix default theme

master
justcool393 2022-10-22 19:11:07 -05:00
parent c4103cfaf4
commit cc3fb59ccd
1 changed files with 9 additions and 4 deletions

View File

@ -92,7 +92,6 @@
{% endif %}
{% if include_user_css %}
<link rel="stylesheet" href="{{('css/'~v.theme~'.css') | asset}}">
<link rel="stylesheet" href="{{'css/awards.css' | asset}}">
{% if v.css and not request.path.startswith('/settings/css') %}
<style>
{{v.css | safe}}
@ -105,12 +104,13 @@
}
</style>
{% endif %}
{% else %}
{{default_theme()}}
{% endif %}
{% else %}
<style>:root{--primary:#{{DEFAULT_COLOR}}</style>
<link rel="stylesheet" href="{{('css/'~DEFAULT_THEME~'.css') | asset}}">
<link rel="stylesheet" href="{{'css/awards.css' | asset}}">
{{default_theme()}}
{% endif %}
<link rel="stylesheet" href="{{'css/awards.css' | asset}}">
{% if request.path.endswith('/catalog') %}
<link rel="stylesheet" href="{{'css/catalog.css' | asset}}">
@ -126,6 +126,11 @@
{{extra_css}}
{% endmacro %}
{% macro default_theme() %}
<style>:root{--primary:#{{DEFAULT_COLOR}}</style>
<link rel="stylesheet" href="{{('css/'~DEFAULT_THEME~'.css') | asset}}">
{% endmacro %}
{% macro seo() %}
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">