adityatelange / hugo-PaperMod

A fast, clean, responsive Hugo theme.
https://adityatelange.github.io/hugo-PaperMod/
MIT License
10.26k stars 2.72k forks source link

🖼 Cover images in RSS feeds? #891

Open major opened 2 years ago

major commented 2 years ago

Would it be possible to put cover images into RSS feeds?

I love how they look on my site with PaperMod, but then they're missing for my RSS feed consumers when they access the feed.

adityatelange commented 2 years ago

@major RSS Spec does not allow an image to be specified inside an item tag. Do you have any references how we can implement this?

major commented 2 years ago

I wish I did. My goal would be to have the cover image appear somewhere in the RSS feed so that someone using an RSS feed reader would see it. If I use a cover image plus a figure shortcode, then the RSS feed has the image but the actual blog post on the website shows the image twice.

major commented 2 years ago

If that goal is out of reach with RSS/ATOM specs, then let's just close this and I'll find some other workaround.

theJoshMuller commented 2 years ago

I also would love this feature. From my Wordpress days, featured images seemed to be included in the RSS content without any customization or problem. Would love that to be the case with this theme too

vindex10 commented 10 months ago

Hi! I opened a PR which worked for me, based on this post: https://stackoverflow.com/a/63816671

based on how wordpress does it

https://github.com/adityatelange/hugo-PaperMod/pull/1370