Reduce number of RSS articles in feed

This commit is contained in:
JP Hastings-Spital 2024-10-11 10:17:44 +01:00
parent 6f2ca586a7
commit f0217df30e

View file

@ -25,7 +25,7 @@
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" (.Permalink | absURL) .MediaType | safeHTML }} {{ printf "<atom:link href=%q rel=\"self\" type=%q />" (.Permalink | absURL) .MediaType | safeHTML }}
{{- end -}} {{- end -}}
{{ printf "<atom:link href=\"/opensearch.xml\" rel=\"search\" type=\"application/opensearchdescription+xml\" />" }} {{ printf "<atom:link href=\"/opensearch.xml\" rel=\"search\" type=\"application/opensearchdescription+xml\" />" }}
{{- range $i, $page := $pages -}} {{- range $i, $page := (first 42 $pages) -}}
{{- if $page.Params.inReplyTo -}}{{ continue }}{{- end -}} {{- if $page.Params.inReplyTo -}}{{ continue }}{{- end -}}
<item> <item>
<title>{{ .Title | default (delimit (slice "An untitled" (.Date.Format "January") (.Type | singularize)) " ") }}</title> <title>{{ .Title | default (delimit (slice "An untitled" (.Date.Format "January") (.Type | singularize)) " ") }}</title>