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/category.html | 2 ++ layouts/know/single.html | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) (limited to 'layouts') 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 }} +
This is an alphabetical list of the concepts in this category. +
{{ range $relevant.GroupByParam "firstLetter" }}+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" . }}