Compare commits

..

No commits in common. "e7adf3c0bb4b830b4cfa70d3b1b7b5f337a7ed52" and "bf2c5edf786ea56a9ccca805950554963e56326a" have entirely different histories.

3 changed files with 30 additions and 36 deletions

View file

@ -12,7 +12,6 @@ module.exports = {
title: "SuperMinimalCSS", title: "SuperMinimalCSS",
description: "Superminimal Superminimal", description: "Superminimal Superminimal",
lang: "fr", lang: "fr",
theme: "auto", // "light", "dark" or "auto"
feed: "feed.xml", feed: "feed.xml",
url: "http://localhost:8080" url: "http://localhost:8080"
} }

View file

@ -53,12 +53,9 @@
<link rel="icon" href="/images/meta/favicon.ico" sizes="any"> <link rel="icon" href="/images/meta/favicon.ico" sizes="any">
<link rel="icon" href="/images/meta/favicon.svg" type="image/svg+xml"> <link rel="icon" href="/images/meta/favicon.svg" type="image/svg+xml">
{% if site.theme == "auto" %}
<meta name="color-scheme" content="light dark"> <meta name="color-scheme" content="light dark">
<script>{% include "js/theme-toggle.js" %}</script> <script>{% include "js/theme-toggle.js" %}</script>
{% else %}
<meta name="color-scheme" content={{site.theme}}>
{% endif %}
<style> <style>
{% 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" %}

View file

@ -1,10 +1,9 @@
{% if site.theme == "auto" %} <button
<button
class="theme-toggle" class="theme-toggle"
type="button" type="button"
title="{{Term.Site.ToggleTheme}}" title="{{Term.Site.ToggleTheme}}"
aria-label="{{Term.Site.ToggleTheme}}" aria-label="{{Term.Site.ToggleTheme}}"
> >
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
aria-hidden="true" aria-hidden="true"
@ -29,5 +28,4 @@
</g> </g>
</g> </g>
</svg> </svg>
</button> </button>
{% endif %}