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

Possibility to use the excerpt content for RSS content #65

Open
julien-deramond opened this issue Jul 3, 2024 · 1 comment
Open

Possibility to use the excerpt content for RSS content #65

julien-deramond opened this issue Jul 3, 2024 · 1 comment
Labels
bug Something isn't working upstream Issues that need to be addressed upstream in Starlight, Astro or another library

Comments

@julien-deramond
Copy link
Contributor

julien-deramond commented Jul 3, 2024

Is your feature request related to a problem?

Sort of!

Most of the time, my blog posts include and render Astro components, so the rendering within the RSS feed is not that readable as is:

Screenshot 2024-07-03 at 20 13 51

We can see there for instance a import ProjectThumbnail from '../../../components/ProjectThumbnail.astro' at the beginning of the feed.

Describe the solution you'd like

It's probably not a common use case for starlight-blog, but I think being able to use another content via the interface could be useful.

I'm thinking about giving the possibility to use the excerpt for instance in the plugin configuration by adding a new parameter. Maybe something like:

starlightBlog({
  rss: {
    excerptAsContent: true // false by default
  }
})

It would be transparent for the majority of users. And folks having complex content to render could use the excerpt to have a text without "embellishments".

Note: If not having the entire blog post in the feed is not a good practice (I'm not used to use them a lot), feel free to close this issue.

Describe alternatives you've considered

I'm not sure if it'd be possible, but another alternative would be to override what's done by default by starlight-blog to create my own RSS "rendering".

Additional Context

No response

@HiDeoo
Copy link
Owner

HiDeoo commented Jul 4, 2024

Thanks for the feedback 🙌

The long term solution to this issue would be the Astro Container API which landed as an experimental feature in Astro 4.9.0.

The API is still in its very early stage but I think waiting for a more stable version (not even out of experimental) is the approach I'm leaning towards. I'm actively following the development of this feature and will revisit depending on the progress.

@HiDeoo HiDeoo added bug Something isn't working upstream Issues that need to be addressed upstream in Starlight, Astro or another library labels Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream Issues that need to be addressed upstream in Starlight, Astro or another library
Projects
None yet
Development

No branches or pull requests

2 participants