summaryrefslogtreecommitdiff
path: root/layouts/know
diff options
context:
space:
mode:
authorPrefetch2021-10-03 21:42:46 +0200
committerPrefetch2021-10-03 21:42:46 +0200
commitbd5796ceb2da03291124ab8ff66769ac67a585c9 (patch)
tree1ab16135066b4771e2f251e8aa26999f71799232 /layouts/know
parentdedb366c3a78f61c64f6be627ea091e71e009f7d (diff)
Reveal name + general improvements
Diffstat (limited to 'layouts/know')
-rw-r--r--layouts/know/know.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/layouts/know/know.html b/layouts/know/know.html
index b1910dc..18ae347 100644
--- a/layouts/know/know.html
+++ b/layouts/know/know.html
@@ -7,6 +7,24 @@
<body>
{{ partial "navigation.html" . }}
{{ .Content }}
+
+{{ $numcon := len (where .RegularPagesRecursive "File.Dir" ">" "know/concept/") }}
+{{ $numcat := len (where .RegularPagesRecursive "File.Dir" "==" "know/category/") }}
+<p>
+There are currently
+<a href="/know/concept/">{{ $numcon }} articles</a> in this knowledge base,
+in <a href="/know/category/">{{ $numcat }} categories</a>.
+</p>
+
+<p>
+Most recent articles:
+<ol>
+ {{ range first 10 (where .RegularPagesRecursive "File.Dir" ">" "know/concept/").ByPublishDate.Reverse }}
+ <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+ {{ end }}
+</ol>
+</p>
+
{{ partial "footer.html" . }}
</body>
</html>