1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 09:18:28 -04:00

fix RSS template regression

...and switch from full content to summaries while figuring out why the AMP shortcodes are being prioritized instead of vanilla HTML
This commit is contained in:
Jake Jarvis 2019-11-20 11:38:41 -05:00
parent 62db9e6a89
commit e3359f8690
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39

View File

@ -12,7 +12,7 @@
{{ with .OutputFormats.Get "RSS" }}
{{- printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML -}}
{{ end }}
{{ range first 15 (where .Data.Pages "Section" "notes") }}
{{ range (where .Site.RegularPages "Section" "notes") }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
@ -20,7 +20,7 @@
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>
{{ .Content | html }}
{{ .Summary | html }}
</description>
</item>
{{ end }}