Skip to content

Commit

Permalink
feed: atom:summary should be plaintext
Browse files Browse the repository at this point in the history
  • Loading branch information
jbowdre committed Jan 1, 2025
1 parent 69e6c00 commit 05e1ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
{{- range (.GetTerms "tags") -}}
<category>{{ .LinkTitle }}</category>{{ end }}
<guid>{{ .Permalink }}</guid>
{{ with .Description }}<atom:summary>{{ . }}</atom:summary>{{ end }}
{{ with .Description }}<atom:summary>{{ . | plainify | safeHTML }}</atom:summary>{{ end }}
{{ $content := replaceRE "a href=\"(#.*?)\"" (printf "%s%s%s" "a href=\"" .Permalink "$1\"") .Content -}}
{{- $content = replaceRE "img src=\"(.*?)\"" (printf "%s%s%s" "img src=\"" .Permalink "$1\"") $content -}}
{{- $content = replaceRE "<svg.*</svg>" "" $content -}}
Expand Down

0 comments on commit 05e1ad4

Please sign in to comment.