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

Patrick Kollitsch
11 hours ago 6e76d2cb5cfe29cd5072a8f7f5300d02638215c8
refs
author Patrick Kollitsch <83281+davidsneighbour@users.noreply.github.com>
Wednesday, November 18, 2026 08:51 +0100
committer GitHub <noreply@github.com>
Wednesday, November 18, 2026 08:51 +0100
commit6e76d2cb5cfe29cd5072a8f7f5300d02638215c8
tree f7b24e59175d709884f170b3f3a9dc505575d644 tree | zip | gz
parent 80d3c624df44f0ee9f3f456b344a52b2b436e6ba view | diff
fix(layouts): allow hiding the section title on summary cards (#1111)

Summary cards always showed the section title above the post title. Add
the `ananke.pages.show_section_title` site setting and the
`ananke.show_section_title` page setting to hide it. Sections can set
the page setting for all of their pages with `cascade`.

Move the shared show/hide logic of `ShowDate.html` into the new
`func/IsShown.html` partial, so that both settings use the same rules.

Extend the quickstart test to check that dates and section titles can be
hidden on list pages.

Closes #1109
3 files modified
1 files added
108 ■■■■■ changed files
layouts/_partials/func/IsShown.html 33 ●●●●● diff | view | raw | blame | history
layouts/_partials/func/ShowDate.html 11 ●●●●● diff | view | raw | blame | history
layouts/summary.html 5 ●●●●● diff | view | raw | blame | history
scripts/test-hugo-quickstart.ts 59 ●●●●● diff | view | raw | blame | history