Absolute Opensearch URL in RSS

This commit is contained in:
JP Hastings-Spital 2025-01-20 20:43:57 +00:00
parent 81f5e8e67f
commit bf0186a315

View file

@ -24,7 +24,7 @@
{{- with .OutputFormats.Get "RSS" -}} {{- with .OutputFormats.Get "RSS" -}}
{{ 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\" />" | safeHTML }} {{ printf "<atom:link href=%q rel=\"search\" type=\"application/opensearchdescription+xml\" />" ("/opensearch.xml" | absURL) | safeHTML }}
{{- range $i, $page := (first 42 $pages) -}} {{- range $i, $page := (first 42 $pages) -}}
{{- if $page.Params.inReplyTo -}}{{ continue }}{{- end -}} {{- if $page.Params.inReplyTo -}}{{ continue }}{{- end -}}
<item> <item>