Source code of my website
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

✨ : add cover images to rss feed

+4
+4
layouts/rss.xml
··· 53 53 {{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }} 54 54 <guid>{{ .Permalink }}</guid> 55 55 <description>{{ .Summary | transform.XMLEscape | safeHTML }}</description> 56 + {{- with .Resources.GetMatch "{cover.*}" }} 57 + {{- $cover := .Resize "820x" }} 58 + <enclosure url="{{ $cover.Permalink }}" type="image/webp" length="0" /> 59 + {{- end }} 56 60 </item> 57 61 {{- end }} 58 62 </channel>