Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions layouts/rss.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>" | safeHTML }}
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>{{ .Site.Title }}</title>
Expand All @@ -13,7 +13,8 @@
{{ $cleanedHTML := .Summary | plainify | transform.XMLEscape | safeHTML }}
<description>{{ $cleanedHTML }}</description>
<pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
<enclosure url="{{ (partial "helper/contentImage" . ).Permalink }}" />
{{ $image := partial "helper/contentImage" . }}
<enclosure url="{{ $image.Permalink }}" />
</item>
{{ end }}
</channel>
Expand Down
Loading