about summary refs log tree commit diff
path: root/users/fcuny/blog/layouts/taxonomy
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-04-06 12:33:39 -0700
committerFranck Cuny <franck@fcuny.net>2021-04-11 11:51:39 -0700
commitbebc3eb665e6223a974e5e73fe5f54b382e3891b (patch)
tree31b10956a6229abe2ee2c8130d3848695cba80dd /users/fcuny/blog/layouts/taxonomy
parentlayout: add date and tags to single pages (diff)
downloadworld-bebc3eb665e6223a974e5e73fe5f54b382e3891b.tar.gz
taxonomy: add pages for tags
We want to have pages that list all the articles related to a given tag.

Update the configuration to add support for tags and the permalink
structure.
Diffstat (limited to '')
-rw-r--r--users/fcuny/blog/layouts/taxonomy/tag.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/users/fcuny/blog/layouts/taxonomy/tag.html b/users/fcuny/blog/layouts/taxonomy/tag.html
new file mode 100644
index 0000000..2b7d98a
--- /dev/null
+++ b/users/fcuny/blog/layouts/taxonomy/tag.html
@@ -0,0 +1,6 @@
+{{ define "main" }}
+
+  {{ $pgs := where .Data.Pages "Params.hidden" "ne" "true" }}
+  {{ partial "postlist" $pgs }}
+
+{{ end }}