Compare commits

...

2 commits

Author SHA1 Message Date
TheThomaas 2a3efb9271 Move theme toggler 2023-06-18 22:06:43 +02:00
TheThomaas 34602a1ba7 Add site theme check before downloading css 2023-06-18 22:04:42 +02:00
2 changed files with 5 additions and 4 deletions

View file

@ -3,12 +3,11 @@
<ul class="list-inline">
<li><a href="{{ site.socials.github }}" target="_blank">{% include "partials/icons/github.html" %}<span class="sr-only">Github</span></a></li>
<li><a href="{{ site.url }}/{{ site.feed }}">{% include "partials/icons/rss.html" %}<span class="sr-only">RSS Feed</span></a></li>
<li>{% include "partials/theme-toggle.html" %}</li>
</ul>
</div>
<div></div>
<div>
<p><small>{{Term.Site.Footer.createdWith}} <a href="https://www.11ty.dev/" rel="nofollow">11ty</a> / {{Term.Site.Footer.lastDeployment}} {{ site.buildTime | toFullDate }}</small></p>
</div>
<div>
{% include "partials/theme-toggle.html" %}
</div>
</footer>

View file

@ -61,7 +61,9 @@
{% endif %}
<style>
{% fetch "https://cdn.jsdelivr.net/npm/theme-toggles@4.10.1/css/around.min.css", "css" %}
{% if site.theme == "auto" %}
{% fetch "https://cdn.jsdelivr.net/npm/theme-toggles@4.10.1/css/around.min.css", "css" %}
{% endif %}
{% include "css/critical.css" %}
</style>
{# Add facility for pages to delare an array of critical styles #}