summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał M. Sapka <michal@sapka.me>2023-05-17 18:45:46 +0200
committerMichał M. Sapka <michal@sapka.me>2023-05-17 18:45:46 +0200
commit5fb58719af26c49a8955d82c729c7de3e80f081f (patch)
treef829ad21744d8966d92dbb8b2cb077d3dd7b529b
parent5c8bba4533198443ee742cf1d155ff11c2e94574 (diff)
fix: categories
-rw-r--r--content/2023/human-web.md2
-rw-r--r--content/2023/using-rss-to-stop-youtube-homepage-induced-damage.md2
-rw-r--r--layouts/shortcodes/categories.html7
3 files changed, 9 insertions, 2 deletions
diff --git a/content/2023/human-web.md b/content/2023/human-web.md
index 327284b..f41896a 100644
--- a/content/2023/human-web.md
+++ b/content/2023/human-web.md
@@ -1,6 +1,6 @@
---
title: "Human Web"
-category: "varia"
+category: "internet"
abstract: Can we save the Web?
date: 2023-05-15T17:12:09+02:00
year: 2023
diff --git a/content/2023/using-rss-to-stop-youtube-homepage-induced-damage.md b/content/2023/using-rss-to-stop-youtube-homepage-induced-damage.md
index 5e9b0ef..1065b29 100644
--- a/content/2023/using-rss-to-stop-youtube-homepage-induced-damage.md
+++ b/content/2023/using-rss-to-stop-youtube-homepage-induced-damage.md
@@ -1,6 +1,6 @@
---
title: "Using RSS to stop Youtube homepage-induced damage"
-category: varia
+category: internet
abstract: RSS is still the best way to follow on the interwebs
date: 2023-05-04T16:31:18+02:00
year: 2023
diff --git a/layouts/shortcodes/categories.html b/layouts/shortcodes/categories.html
new file mode 100644
index 0000000..c114f15
--- /dev/null
+++ b/layouts/shortcodes/categories.html
@@ -0,0 +1,7 @@
+{{ range $name, $taxonomy := .Site.Taxonomies.category }}
+ {{ $cnt := .Count }}
+ {{ with $.Site.GetPage (printf "/category/%s" $name) }}
+ <a href={{ .RelPermalink }} title="All pages with tag <i>{{$name}}</i>">{{$name}}</a>
+ <sup>{{$cnt}}</sup>
+ {{end}}
+{{ end }}