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
The RSS spec does not require an item title, but astrojs/rss does #9577
Comments
If I understand this correctly, it means that if an item has no elements (because it's optional), then at least a Plus I think it's fair for Astro to enforce some defaults here to generate a better RSS feed. |
Correct.
This is not correct. The designer of the RSS specifications, Dave Winer - @scripting, regularly calls out that RSS items should not require titles. It is an important distinction he makes. Title-less RSS items allow one to build a (for lack of a better word) "micro-blogging" site like Twitter or Bluesky. In fact, Bluesky already produces RSS feeds for users and they do not have titles. I hit this issue when attempting to build a textcasting system using Astro. Textcasting is a (IMHO) honorable effort by @scripting to reboot blogging and personal publication. Title-less posts are specifically called out twice:
Please do not close this as a non-issue. I really hope that |
You don't have to go by what I say, it's very clear in the RSS 2.0 spec.
It was put there so that writers could choose whether an item required a title or not. The idea was to empower the writer, as it is with textcasting, as you note. |
I guessed that was the problem. Unfortunately, my Zod-fu is not strong enough to know how to represent "at least one of" across multiple fields. I am interested in the solution because I have a similar case in my own In my |
I took another look at the spec, and I think I was confused between a "channel" and an "item" where both have overlapping sub-elements that are required/optional. So I suppose we can loosen up the schema for "item" in Astro today. But on top of allowing either title and description, we should also make |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
The RSS specification calls out that the item title is optional if the item description is present:
However the
rss()
in astro requires an title:What's the expected result?
Do not require a
title
element for RSS items if adescription
element is present.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-aoal5a?file=src%2Fcontent%2Fblog%2Fpost-only-desc.md
Participation
The text was updated successfully, but these errors were encountered: