Add site theme check before downloading css
This commit is contained in:
parent
e7adf3c0bb
commit
34602a1ba7
|
|
@ -61,7 +61,9 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
{% if site.theme == "auto" %}
|
||||||
{% fetch "https://cdn.jsdelivr.net/npm/theme-toggles@4.10.1/css/around.min.css", "css" %}
|
{% fetch "https://cdn.jsdelivr.net/npm/theme-toggles@4.10.1/css/around.min.css", "css" %}
|
||||||
|
{% endif %}
|
||||||
{% include "css/critical.css" %}
|
{% include "css/critical.css" %}
|
||||||
</style>
|
</style>
|
||||||
{# Add facility for pages to delare an array of critical styles #}
|
{# Add facility for pages to delare an array of critical styles #}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue