jmjl / gist:2b3a2285602f4aacb70e912b61519920

0 likes
0 forks
2 files
Last active 1725838849
I DON'T THINK THIS SATISFIES THE https://validator.w3.org/feed/docs/atom.html#sampleFeed spec Modify hugo's default RSS feed to make the post's content shown be the post's full content and not only a short snippet of it. To be placed as layouts/index.xml (or renamed to whatever the feed name would be )
1 From <https://github.com/ttys3/hugo-theme-terminal/blob/86c8d80e396b82f28927b659e0e0edd9d8959afe/layouts/_default/home.rss.xml>
2
3 You should probably use this instead.
4
5 <EOF
6 {{- $pctx := . -}}
7 {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
8 {{- $pages := slice -}}
9 {{- if or $.IsHome $.IsSection -}}
10 {{- $pages = $pctx.RegularPages -}}
Newer Older