summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorPrefetch2021-02-27 09:57:58 +0100
committerPrefetch2021-02-27 09:57:58 +0100
commit37d9922b454e738c072d03ad294a07e057fffa50 (patch)
tree149d3187c726ef5678fa7b0aa61cc22e5d02ddde /layouts
parentc705ac1d7dc74709835a8c48fae4a7dd70dc5c49 (diff)
Improve knowledge base
Diffstat (limited to 'layouts')
-rw-r--r--layouts/know/category.html2
-rw-r--r--layouts/know/single.html18
2 files changed, 20 insertions, 0 deletions
diff --git a/layouts/know/category.html b/layouts/know/category.html
index 3dc8c7a..a672ea1 100644
--- a/layouts/know/category.html
+++ b/layouts/know/category.html
@@ -20,7 +20,9 @@
{{ end }}
</div>
+<p>
This is an alphabetical list of the concepts in this category.
+</p>
{{ range $relevant.GroupByParam "firstLetter" }}
<h2 id="{{ .Key }}">{{ .Key }}</h2>
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>