summaryrefslogtreecommitdiff
path: root/layouts/know
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/know')
-rw-r--r--layouts/know/category.html36
-rw-r--r--layouts/know/know-list.html32
-rw-r--r--layouts/know/know.html12
-rw-r--r--layouts/know/single.html13
4 files changed, 93 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>
diff --git a/layouts/know/know-list.html b/layouts/know/know-list.html
new file mode 100644
index 0000000..b1a8c33
--- /dev/null
+++ b/layouts/know/know-list.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+{{ partial "head.html" . }}
+<title>{{ .Title }} | {{ .Site.Title }}</title>
+</head>
+<body>
+{{ partial "navigation.html" . }}
+<h1>{{ .Title }}</h1>
+
+<div style="text-align:center;">
+ -
+ {{ range .RegularPages.GroupByParam "firstLetter" }}
+ <a href="#{{ .Key }}">{{ .Key }}</a>
+ -
+ {{ end }}
+</div>
+
+{{ .Content }}
+
+{{ range .RegularPages.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>
diff --git a/layouts/know/know.html b/layouts/know/know.html
new file mode 100644
index 0000000..b1910dc
--- /dev/null
+++ b/layouts/know/know.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+<head>
+{{ partial "head.html" . }}
+<title>{{ .Title }} | {{ .Site.Title }}</title>
+</head>
+<body>
+{{ partial "navigation.html" . }}
+{{ .Content }}
+{{ partial "footer.html" . }}
+</body>
+</html>
diff --git a/layouts/know/single.html b/layouts/know/single.html
new file mode 100644
index 0000000..d14a83c
--- /dev/null
+++ b/layouts/know/single.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<head>
+{{ partial "head.html" . }}
+{{ partial "mathjax.html" . }}
+<title>{{ .Title }} | {{ .Site.Title }}</title>
+</head>
+<body>
+{{ partial "navigation.html" . }}
+{{ .Content }}
+{{ partial "footer.html" . }}
+</body>
+</html>