summaryrefslogtreecommitdiff
path: root/layouts/know/single.html
blob: 122b20e598a1a53c079e2660e3051a8623f7a8ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html>
<head>
{{ partial "head.html" . }}
{{ partial "mathjax.html" . }}
<title>{{ .Title }} | {{ .Site.Title }}</title>
<style>
img {max-width:100%; height:auto;}
@media (prefers-color-scheme: dark) {
img {filter:invert(100%);}
}
</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>