Merge bdaf17bc7c08f122b50ee0df941eca870d3ca18b into dad94ab4b7c55eea0b63f7b81419d027fe9a8d81

This commit is contained in:
vindex10 2024-03-17 20:59:06 -07:00 committed by GitHub
commit dd2eebe376
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,8 +73,17 @@
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
<guid>{{ .Permalink }}</guid>
<description>{{ with .Description | html }}{{ . }}{{ else }}{{ .Summary | html }}{{ end -}}</description>
{{- if and site.Params.ShowFullTextinRSS .Content }}
<content:encoded>{{ (printf "<![CDATA[%s]]>" .Content) | safeHTML }}</content:encoded>
{{- $isCoverHidden := .Params.cover.hidden | default site.Params.cover.hiddenInSingle | default site.Params.cover.hidden }}
{{- $cover := (partial "cover.html" (dict "cxt" . "IsSingle" false "IsHome" false "isHidden" $isCoverHidden)) -}}
{{- if (or $cover (and site.Params.ShowFullTextinRSS .Content)) -}}
<content:encoded>
{{- if $cover -}}
{{ (printf "<![CDATA[%s]]>" $cover) | safeHTML }}
{{- end -}}
{{- if and site.Params.ShowFullTextinRSS .Content }}
{{ (printf "<![CDATA[%s]]>" .Content) | safeHTML }}
{{- end -}}
</content:encoded>
{{- end }}
</item>
{{- end }}