Featured images on RSS feed?

Hi,

I have a blog that is included in Google News. To be included in Google News, we need to provide an RSS feed. Hugo already has a good RSS feed, but Google News has different requirements, such as having featured images in the RSS feed.

On my article I have set featured images via frontmatter

image: /images/featured images.jpg

My question is, how can I modify the RSS feed from Hugo to include featured images?

Thank you.

Guess you need that one:

1 Like

Something like that

 <description>{{ .Summary | transform.XMLEscape | safeHTML }}</description>
        <content:encoded>{{ "<![CDATA["  | safeHTML  }}{{ printf "<img src=\"%s\" />" $ftimgsrc.Permalink | safeHTML }}{{ .Summary | transform.XMLEscape | safeHTML }}{{ "]]>" | safeHTML  }}</content:encoded>
2 Likes