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

Patrick Kollitsch
10 hours ago 98f9cedfae4fe8aa6db8f697bf973faf0a4d22d4
refs
author Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Wednesday, November 18, 2026 09:45 +0100
committer Patrick Kollitsch <83281+davidsneighbour@users.noreply.github.com>
Wednesday, November 18, 2026 10:03 +0100
commit98f9cedfae4fe8aa6db8f697bf973faf0a4d22d4
tree 4ad995d00d5d581489a8f7426e970250c91a8255 tree | zip | gz
parent 0951129fdffbb613bc340eae8251fc77ce70c11e view | diff
feat(layouts): separate single and summary dates

Add show_single_date and show_summary_date with show_date as the shared fallback. Resolve page values before site values, and retain Hugo cascade behaviour and the undated-page guard.

Check date precedence and independent visibility through single pages, all summary templates, and home page cards.

Closes #1112
7 files modified
244 ■■■■■ changed files
layouts/_partials/func/IsShown.html 34 ●●●●● diff | view | raw | blame | history
layouts/_partials/func/ShowDate.html 29 ●●●●● diff | view | raw | blame | history
layouts/post/summary.html 2 ●●●●● diff | view | raw | blame | history
layouts/single.html 2 ●●●●● diff | view | raw | blame | history
layouts/summary-with-image.html 2 ●●●●● diff | view | raw | blame | history
layouts/summary.html 2 ●●●●● diff | view | raw | blame | history
scripts/test-hugo-quickstart.ts 173 ●●●●● diff | view | raw | blame | history