mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Patrick Kollitsch
2 days ago 677948afce4163476d8d28619190401d5892cdac
refs
author Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Saturday, June 6, 2026 03:47 +0200
committer Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Saturday, June 6, 2026 04:08 +0200
commit677948afce4163476d8d28619190401d5892cdac
tree 98eca69efbb1c89c25eb404f662e92620d1357c9 tree | zip | gz
parent cc579e8ae36756d246eb4f6be1c69e38976f9cef view | diff
fix: show categories on posts

Add a categories.html partial that renders linked Hugo categories terms
using the same styling pattern as tags, and include it before tags on
single pages.

Add a global `ananke.show_categories` switch (default true) to toggle
the category display; set it to false to hide categories site-wide.

Closes #620
2 files modified
1 files added
14 ■■■■■ changed files
config/_default/params.toml 1 ●●●● diff | view | raw | blame | history
layouts/_partials/categories.html 12 ●●●●● diff | view | raw | blame | history
layouts/single.html 1 ●●●● diff | view | raw | blame | history