added dark theme option. It ìs selected automagically based on system choiche of...
[theme-danix.xyz.git] / layouts / partials / head.html
index 3b34814..0f5757b 100644 (file)
@@ -1,8 +1,10 @@
 <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
+       <meta name="color-scheme" content="light dark">
        <link rel="profile" href="https://gmpg.org/xfn/11">
 
+
        {{ $style_options := (dict "targetPath" "css/style.css" "outputStyle" "compressed" "transpiler" "dartsass" "enableSourceMap" (not hugo.IsProduction)) }}
        {{ $style := resources.Get "sass/main.scss" | resources.ToCSS $style_options }}
 
@@ -10,8 +12,8 @@
        {{ $noscript := resources.Get "sass/noscript.scss" | resources.ToCSS $noscript_options }}
 
        <link rel="stylesheet" href="{{ $style.RelPermalink }}">
-       <link rel="stylesheet" href="{{ "syntax.css" |relURL }}">
-       <noscript><link rel="stylesheet" href="{{ $noscript.RelPermalink }}" /></noscript>
+       <link rel="stylesheet" href="{{ "css/syntax.css" |relURL }}">
+       <noscript><link rel="stylesheet" href="{{ $noscript.RelPermalink }}" ></noscript>
        {{ partial "funcs/favicon.html" . }}
        <link rel="canonical" href="{{ .Permalink }}">