Updating ShowFullTextinRSS parameter to include inserting .Content in <description> #780
ericapisani
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks!
I set up an RSS feed on my blog (using the wonderful PaperMod theme of course 😉 ) and found that in some cases, the aggregator (I used Feedly) doesn't render the content of a blog post within its application, and you have to click through to go to the website itself in order to read the full contents of the post. Ideally this wouldn't be the case, and you can read the entire post within the aggregator.
The reason for this is due to this line of code. While this is completely valid according to the RSS spec, some aggregators expect the
<description>
to contain the content itself rather than the summary, and disregards the<content:encoded>
block below.Idea/proposal
Rather than having the
ShowFullTextInRSS
parameter controlling only the rendering of the<content:encoded>
block, we could also use it to control whether or not the.Content
or.Summary
is rendered within the<description>
block in order to support aggregators that look to the<description>
for the content. The code could look something like the following:Alternatively, there could be an additional parameter introduced to the PaperMod configuration (not sure about a name to suggest at the moment) in order to keep the template code as is, but allow the introduction of the other permutation mentioned above.
Beta Was this translation helpful? Give feedback.
All reactions