Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSS lastBuildDate uses future (scheduled) post dates #1005

Open
asimmon opened this issue Apr 8, 2024 · 0 comments · May be fixed by #1006
Open

RSS lastBuildDate uses future (scheduled) post dates #1005

asimmon opened this issue Apr 8, 2024 · 0 comments · May be fixed by #1006

Comments

@asimmon
Copy link

asimmon commented Apr 8, 2024

What happened?

The rss.xml templates builds the lastBuildDate XML value by including scheduled (future) content. As a result, the generated value can be set to some date in the future. It should be set to the last non-draft and non-future content.

Future content is not yet visible so the RSS feed should not use it.

Reproduction steps:

  • Create one non-draft post with a past/current date T1
  • Create another non-draft post with a future date T2
  • Open the generated RSS feed index.xml
  • lastBuildDate is set to T2 instead of T1

Hugo version

0.124.1

Theme version

3.25.0

What browsers are you seeing the problem on?

Chrome

More information about the browser

No response

Relevant log output

No response

Link to Minimal Reproducible Example

https://github.com/CaiJimmy/hugo-theme-stack-starter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant