Skip to content

fix: derive term dates from indexable members - #2350

Merged
markdumay merged 3 commits into
mainfrom
fix/2348-term-dates-repair1
Nov 8, 2026
Merged

markdumay merged 3 commits into
mainfrom
fix/2348-term-dates-repair1

Conversation

@markdumay

Copy link
Copy Markdown
Collaborator

Hugo derives taxonomy term dates from all members, so a newer noindex member can still advance RSS and sitemap metadata after that member is filtered out. This uses a shared GetIndexableDates utility to derive missing term fields from indexable members and applies it in RSS and sitemap output.

Typed time.Time Params date, publishDate and lastmod are per-field overrides, including zero; the README documents that convention. Non-time custom values are ignored. Ordinary-page dates, the native RSS own-Date guard, membership, ordering and limits remain unchanged.

Verification: feed fixtures pass 23/23 on Hugo 0.158.0 and 0.169.0, including explicit/typed overrides, zero and pre-zero dates, corresponding fields, branch members and multilingual isolation. Full pinned-runtime tests/builds and minimum-runtime template/language/renderer/feed checks plus root/example builds pass. Independent mutation checks reject guard and date-filter changes; root/example HTML remains byte-identical.

Closes #2348.

Share effective term dates across RSS and sitemap metadata while keeping
ordinary page dates and feed selection unchanged. Preserve typed date
overrides per field, including zero, and document reserved custom keys.

Cover hidden members, resolved overrides, missing dates, branch members
and multilingual cache isolation with observable feed/sitemap fixtures.
Treat zero time as absence when deriving term dates and RSS channel
maxima, so valid year 0000 values are preserved.

Exercise independent field maxima, zero members and typed overrides in
generated RSS, sitemap and helper output.

Fixes #2348
@netlify

netlify Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for gethinode-demo ready!

Name Link
🔨 Latest commit 3e500e0
🔍 Latest deploy log https://app.netlify.com/projects/gethinode-demo/deploys/6af04ad3ce3c5532f135b21b
😎 Deploy Preview https://deploy-preview-2350--gethinode-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Use the existing shell command pattern so the pnpm Windows launcher can run.
Retain quoted fixture paths and report spawn errors before checking the exit status.
@markdumay
markdumay merged commit 0e64c67 into main Nov 8, 2026
32 of 38 checks passed
@markdumay

Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 3.52.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@markdumay
markdumay deleted the fix/2348-term-dates-repair1 branch November 8, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Term dates in feeds and the sitemap come from noindex member pages

1 participant