summaryrefslogtreecommitdiff
path: root/layouts/know/category.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/know/category.html')
-rw-r--r--layouts/know/category.html36
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>