summaryrefslogtreecommitdiff
path: root/layouts/_partials/head/css.html
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-11-03 21:35:01 +0800
committereltrac <hi@eltr.ac>2026-11-03 21:35:01 +0800
commit56f6df85a4ced34ea00783daf8d34bd98574b024 (patch)
treec8618b56ad01077f64c2004761d055f0ed1ddefe /layouts/_partials/head/css.html
parentbd5c1aa0aff345258e5e14d8369c651d0cf5d48e (diff)
feat: light/dark mode syntax highlighting; style to xcodeHEADmaster
Diffstat (limited to 'layouts/_partials/head/css.html')
-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 }}