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

Patrick Kollitsch
yesterday d59cd859cb495ea2b826a177b76e78706fc5f072
refs
author Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Sunday, June 7, 2026 02:34 +0200
committer Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Sunday, June 7, 2026 02:34 +0200
commitd59cd859cb495ea2b826a177b76e78706fc5f072
tree 8fbfbffe10b0f36b64db0c0124261b5b1da0f5a6 tree | zip | gz
parent 7abd905913a476061ff6880f645c2ce2e1092278 view | diff
feat: make section link above article title clickable and configurable

The `article/section-link` hook now renders the section label as a link
instead of plain text. By default it points to the section index page
(`_index.md`).

A new `ananke.section_link` parameter (page front matter or site params)
controls the target:

- unset (default): the section index page
- "first": the first page of the section, honouring its sort order
- "<path>": a specific page, resolved relative to the section

Unresolvable values fall back to the section index. The visible label
remains the section title.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 files modified
33 ■■■■■ changed files
layouts/_partials/hooks/article/section-link.html 33 ●●●●● diff | view | raw | blame | history