diff options
author | Prefetch | 2021-02-24 09:47:22 +0100 |
---|---|---|
committer | Prefetch | 2021-02-24 09:47:22 +0100 |
commit | b5608ab92a4f8a5140571acabf54e3c6bdebd0e4 (patch) | |
tree | 673b19fadbbaff9c1f765037896a1ba7d008a2b8 /layouts/know/category.html |
Initial commit
Diffstat (limited to 'layouts/know/category.html')
-rw-r--r-- | layouts/know/category.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/layouts/know/category.html b/layouts/know/category.html new file mode 100644 index 0000000..3dc8c7a --- /dev/null +++ b/layouts/know/category.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html> +<head> +{{ partial "head.html" . }} +<title>{{ .Title }} | {{ .Site.Title }}</title> +</head> +<body> +{{ partial "navigation.html" . }} +<h1>{{ .Title }}</h1> + +{{ $category := slice .Title }} +{{ $concepts := (.Site.GetPage "/know/concept").RegularPages }} +{{ $relevant := where $concepts "Params.categories" "intersect" $category }} + +<div style="text-align:center;"> + - + {{ range $relevant.GroupByParam "firstLetter" }} + <a href="#{{ .Key }}">{{ .Key }}</a> + - + {{ end }} +</div> + +This is an alphabetical list of the concepts in this category. + +{{ range $relevant.GroupByParam "firstLetter" }} +<h2 id="{{ .Key }}">{{ .Key }}</h2> +<ul> + {{ range .Pages.ByTitle }} + <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> + {{ end }} +</ul> +{{ end }} + +{{ partial "footer.html" . }} +</body> +</html> |