From 37d9922b454e738c072d03ad294a07e057fffa50 Mon Sep 17 00:00:00 2001 From: Prefetch Date: Sat, 27 Feb 2021 09:57:58 +0100 Subject: Improve knowledge base --- layouts/know/single.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'layouts/know/single.html') 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" . }}
+Categories: +{{ $len := len .Params.categories }} +{{ $idx := 0 }} +{{ range sort .Params.categories }} + {{ $idx = add $idx 1 }} + {{ $url := replace . " " "-" | lower }} + {{ . }}{{ if eq $idx $len }}.{{ else }},{{end}} +{{ end }} +
+ {{ .Content }} + {{ partial "footer.html" . }}