From 5fb58719af26c49a8955d82c729c7de3e80f081f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20M=2E=20Sapka?= Date: Wed, 17 May 2023 18:45:46 +0200 Subject: fix: categories --- layouts/shortcodes/categories.html | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 layouts/shortcodes/categories.html (limited to 'layouts/shortcodes') 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) }} + {{$name}} + {{$cnt}} + {{end}} +{{ end }} -- cgit v1.2.3