summaryrefslogtreecommitdiff
path: root/layouts/know/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/know/single.html')
-rw-r--r--layouts/know/single.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/layouts/know/single.html b/layouts/know/single.html
index d14a83c..fe1197b 100644
--- a/layouts/know/single.html
+++ b/layouts/know/single.html
@@ -4,10 +4,28 @@
{{ partial "head.html" . }}
{{ partial "mathjax.html" . }}
<title>{{ .Title }} | {{ .Site.Title }}</title>
+<style>
+@media (prefers-color-scheme: dark) {
+img {filter:invert(100%);max-width:100%;height:auto;}
+}
+</style>
</head>
<body>
{{ partial "navigation.html" . }}
+
+<p>
+Categories:
+{{ $len := len .Params.categories }}
+{{ $idx := 0 }}
+{{ range sort .Params.categories }}
+ {{ $idx = add $idx 1 }}
+ {{ $url := replace . " " "-" | lower }}
+ <a href="/know/category/{{ $url }}/">{{ . }}</a>{{ if eq $idx $len }}.{{ else }},{{end}}
+{{ end }}
+</p>
+
{{ .Content }}
+
{{ partial "footer.html" . }}
</body>
</html>