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

Patrick Kollitsch
20 hours ago 50646e4496d0888da9b3edef79c0f5cc456bb3f8
refs
author Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Wednesday, November 18, 2026 00:00 +0100
committer Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Wednesday, November 18, 2026 00:00 +0100
commit50646e4496d0888da9b3edef79c0f5cc456bb3f8
tree f7b24e59175d709884f170b3f3a9dc505575d644 tree | zip | gz
parent 80d3c624df44f0ee9f3f456b344a52b2b436e6ba view | diff
fix(layouts): allow hiding the section title on summary cards

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