Skip to content

Commit

Permalink
fix: passing rss content through content.html
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Oct 27, 2024
1 parent 9e488a5 commit 25b77e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion layouts/index.sectionsatom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@
<rights>{{ . | plainify | htmlUnescape }}</rights>
{{- end }}
{{- $summary := .Description | default (partial "utils/summary.html" $page) -}}
{{- $content := (partial "utils/content.html" $page) -}}
<summary type="html">{{ partial "utils/make-links-absolute.html" (dict "$" . "content" $summary) | html }}</summary>
{{ if $.Site.Params.includeContent }}
<content type="html">{{ partial "utils/make-links-absolute.html" (dict "$" . "content" .Content) | html }}</content>
<content type="html">{{ partial "utils/make-links-absolute.html" (dict "$" . "content" $content) | html }}</content>
{{ end }}
<!-- Sections -->
{{ if eq $.Site.Params.categoryBy "sections" }}
Expand Down
3 changes: 2 additions & 1 deletion layouts/index.sectionsrss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
<copyright>{{ . | plainify | htmlUnescape }}</copyright>
{{- end }}
{{ if $.Site.Params.includeContent }}
<description>{{ partial "utils/make-links-absolute.html" (dict "$" . "content" .Content) | html }}</description>
{{- $content := (partial "utils/content.html" $page) -}}
<description>{{ partial "utils/make-links-absolute.html" (dict "$" . "content" $content) | html }}</description>
{{ else }}
{{- $summary := .Description | default (partial "utils/summary.html" $page) -}}
<description>{{ partial "utils/make-links-absolute.html" (dict "$" . "content" $summary) | html }}</description>
Expand Down

0 comments on commit 25b77e7

Please sign in to comment.