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

Patrick Kollitsch
10 hours ago 865fdab89087c7098edfc006d89627268d74b6a8
refs
author Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Wednesday, November 18, 2026 09:45 +0100
committer Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Wednesday, November 18, 2026 09:45 +0100
commit865fdab89087c7098edfc006d89627268d74b6a8
tree 4de3d8b29fc54910d13fe5837f9b5de0f253969c tree | zip | gz
parent 79051088e59097cda81f9c797abc279575952827 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