forked from rDrama/rDrama
html head: fix default theme
parent
c4103cfaf4
commit
cc3fb59ccd
|
@ -92,7 +92,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if include_user_css %}
|
{% if include_user_css %}
|
||||||
<link rel="stylesheet" href="{{('css/'~v.theme~'.css') | asset}}">
|
<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') %}
|
{% if v.css and not request.path.startswith('/settings/css') %}
|
||||||
<style>
|
<style>
|
||||||
{{v.css | safe}}
|
{{v.css | safe}}
|
||||||
|
@ -105,12 +104,13 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
{{default_theme()}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<style>:root{--primary:#{{DEFAULT_COLOR}}</style>
|
{{default_theme()}}
|
||||||
<link rel="stylesheet" href="{{('css/'~DEFAULT_THEME~'.css') | asset}}">
|
|
||||||
<link rel="stylesheet" href="{{'css/awards.css' | asset}}">
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<link rel="stylesheet" href="{{'css/awards.css' | asset}}">
|
||||||
|
|
||||||
{% if request.path.endswith('/catalog') %}
|
{% if request.path.endswith('/catalog') %}
|
||||||
<link rel="stylesheet" href="{{'css/catalog.css' | asset}}">
|
<link rel="stylesheet" href="{{'css/catalog.css' | asset}}">
|
||||||
|
@ -126,6 +126,11 @@
|
||||||
{{extra_css}}
|
{{extra_css}}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
{% macro default_theme() %}
|
||||||
|
<style>:root{--primary:#{{DEFAULT_COLOR}}</style>
|
||||||
|
<link rel="stylesheet" href="{{('css/'~DEFAULT_THEME~'.css') | asset}}">
|
||||||
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro seo() %}
|
{% macro seo() %}
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
<meta name="apple-touch-fullscreen" content="yes">
|
<meta name="apple-touch-fullscreen" content="yes">
|
||||||
|
|
Loading…
Reference in New Issue