summaryrefslogtreecommitdiff
path: root/layouts/know
diff options
context:
space:
mode:
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>