mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 08:41:18 -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:
@@ -12,7 +12,7 @@
|
|||||||
{{ with .OutputFormats.Get "RSS" }}
|
{{ with .OutputFormats.Get "RSS" }}
|
||||||
{{- printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML -}}
|
{{- printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range first 15 (where .Data.Pages "Section" "notes") }}
|
{{ range (where .Site.RegularPages "Section" "notes") }}
|
||||||
<item>
|
<item>
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||||
<guid>{{ .Permalink }}</guid>
|
<guid>{{ .Permalink }}</guid>
|
||||||
<description>
|
<description>
|
||||||
{{ .Content | html }}
|
{{ .Summary | html }}
|
||||||
</description>
|
</description>
|
||||||
</item>
|
</item>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user