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

Patrick Kollitsch
2 days ago 52ec6cd4b85f0d861100c6ab78bc2f8d3f073675
refs
author Patrick Kollitsch <83281+davidsneighbour@users.noreply.github.com>
Saturday, June 6, 2026 05:03 +0200
committer Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Sunday, June 7, 2026 05:45 +0200
commit52ec6cd4b85f0d861100c6ab78bc2f8d3f073675
tree ce6c62df129eb20f702cea9831b532f589d73069 tree | zip | gz
parent 66247c8cc7544c4d736deb83705b731d1a1d6687 view | diff
feat: show categories on posts (#973)

## Summary

* Add a `categories.html` partial that renders linked Hugo `categories`
terms with the same styling pattern used for tags.
* Include categories before tags on single pages.

## Motivation

Posts already show tags, but Hugo also supports `categories` as a
taxonomy. This resolves the requested single-page category display from
issue #620.

Closes #620

## Documentation

Documentation PR: gohugo-ananke/documentation#18

## Verification

* Compared `issues/620` against `development`; the branch is ahead by
only the intended two files.
* Confirmed `layouts/_partials/tags.html` already renders terms with
`.GetTerms "tags"`, and the new categories partial mirrors that approach
with `.GetTerms "categories"`.
* Could not run a local Hugo build because the execution container
cannot resolve `github.com` for repository cloning or dependency
installation.
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