summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorPrefetch2021-10-03 21:42:46 +0200
committerPrefetch2021-10-03 21:42:46 +0200
commitbd5796ceb2da03291124ab8ff66769ac67a585c9 (patch)
tree1ab16135066b4771e2f251e8aa26999f71799232 /layouts
parentdedb366c3a78f61c64f6be627ea091e71e009f7d (diff)
Reveal name + general improvements
Diffstat (limited to 'layouts')
-rw-r--r--layouts/know/know.html18
-rw-r--r--layouts/partials/footer.html3
2 files changed, 20 insertions, 1 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>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 8ac5a50..85b9645 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,6 +1,7 @@
<hr>
<div class="footl noha">
-&copy; &quot;Prefetch&quot;. Licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>.
+&copy; Marcus R.A. Newman, a.k.a. &quot;Prefetch&quot;.
+Available under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>.
</div>
<div class="footr noha">
<a href="/uses/">uses</a>