From bd5796ceb2da03291124ab8ff66769ac67a585c9 Mon Sep 17 00:00:00 2001 From: Prefetch Date: Sun, 3 Oct 2021 21:42:46 +0200 Subject: Reveal name + general improvements --- layouts/know/know.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'layouts/know/know.html') 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 @@ {{ partial "navigation.html" . }} {{ .Content }} + +{{ $numcon := len (where .RegularPagesRecursive "File.Dir" ">" "know/concept/") }} +{{ $numcat := len (where .RegularPagesRecursive "File.Dir" "==" "know/category/") }} +

+There are currently +{{ $numcon }} articles in this knowledge base, +in {{ $numcat }} categories. +

+ +

+Most recent articles: +

    + {{ range first 10 (where .RegularPagesRecursive "File.Dir" ">" "know/concept/").ByPublishDate.Reverse }} +
  1. {{ .Title }}
  2. + {{ end }} +
+

+ {{ partial "footer.html" . }} -- cgit v1.2.3