withastro / roadmap

Ideas, suggestions, and formal RFC proposals for the Astro project.
292 stars 29 forks source link

RFC: Add option to @astrojs/rss for including full post content in RSS feed. #256

Closed slyeargin closed 1 year ago

slyeargin commented 2 years ago

Summary

Updating @astrojs/rss to generate feeds that include full compiledContext() strings as content:encoded in the XML, given a parameter of contentLength with a value of full. (This value would default to summary, which is the current default behavior.)

Links

matthewp commented 2 years ago

I think the idea is good and well scoped. There are some issues with the RFC itself that I'd like to see cleaned up, but assuming that can be done I would be in favor of this.

SeanMcP commented 1 year ago

Forgive me if this is a naive question, but is <content:encoded> a valid element in RSS 2.0? I don't see it in the list of item subelements, but it is mentioned here for 1.0.

naiyerasif commented 1 year ago

I would not want to publish the compiled content that's rendered by Astro for the following reasons:

Ideally, I'd want a separate markdown pipeline to generate the HTML optimised for syndication.

SeanMcP commented 1 year ago

This feature was added to @astrojs/rss in 1.6.14 with a different API than this RFC suggests. As a result, this can probably be closed.

@naiyerasif: Full content is opt-in, so you don't need to include it if you don't want.