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

Patrick Kollitsch
2 days ago c806c1cf1b8bc98068ffef9cfd551a73711dcdc1
refs
author Patrick Kollitsch <83281+davidsneighbour@users.noreply.github.com>
Saturday, June 6, 2026 05:03 +0200
committer GitHub <noreply@github.com>
Saturday, June 6, 2026 05:03 +0200
commitc806c1cf1b8bc98068ffef9cfd551a73711dcdc1
tree 98eca69efbb1c89c25eb404f662e92620d1357c9 tree | zip | gz
parent cc579e8ae36756d246eb4f6be1c69e38976f9cef 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