summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_partials/head/css.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/_partials/head/css.html b/layouts/_partials/head/css.html
index c0e9b11..79d8c8c 100644
--- a/layouts/_partials/head/css.html
+++ b/layouts/_partials/head/css.html
@@ -17,3 +17,20 @@
{{ with resources.Get "css/main.scss" | css.Sass | minify }}
<style>{{ .Content | safeCSS }}</style>
{{ end }}
+
+{{ $opts := dict
+ "mode" "light"
+ "targetPath" "css/highlight-light.css"
+}}
+{{ with css.ChromaStyles $opts }}
+ <link rel="stylesheet" href="{{ .RelPermalink }}">
+{{ end }}
+
+{{ $opts := dict
+ "mode" "dark"
+ "modeSelector" true
+ "targetPath" "css/highlight-dark.css"
+}}
+{{ with css.ChromaStyles $opts }}
+ <link rel="stylesheet" href="{{ .RelPermalink }}">
+{{ end }}