summaryrefslogtreecommitdiff
path: root/layouts/know/single.html
blob: 1c3fd768cfee1fb56adfa2e29f335bca546600b7 (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
<!DOCTYPE html>
<html>
<head>
{{ partial "head.html" . }}
{{ partial "maths.html" . }}
<title>{{ .Title }} | {{ .Site.Title }}</title>
</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>