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

Patrick Kollitsch
11 hours ago 79051088e59097cda81f9c797abc279575952827
refs
author Patrick Kollitsch <83281+davidsneighbour@users.noreply.github.com>
Wednesday, November 18, 2026 08:51 +0100
committer Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Wednesday, November 18, 2026 09:10 +0100
commit79051088e59097cda81f9c797abc279575952827
tree f7b24e59175d709884f170b3f3a9dc505575d644 tree | zip | gz
parent e5ad724c120e5d9f97cb7a7e2d1c18f57c7b571d 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

Signed-off-by: Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
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