2024-04-27 12:38:19 +00:00
|
|
|
{{- /* based on Hugo 0.125.5 rss.xml */}}
|
2024-08-29 21:50:31 +00:00
|
|
|
{{- partialCached "relearn-meta.gotmpl" . .Path }}
|
2023-10-20 17:50:14 +00:00
|
|
|
{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}}
|
|
|
|
{{- $authorEmail := "" }}
|
|
|
|
{{- if and .Site.Params.author (reflect.IsMap .Site.Params.author) .Site.Params.author.email }}
|
|
|
|
{{- $authorEmail = .Site.Params.author.email }}
|
|
|
|
{{- else }}
|
|
|
|
{{- with .Site.Author.email }}
|
|
|
|
{{- $authorEmail = . }}
|
2023-10-20 18:15:52 +00:00
|
|
|
{{- $hugoVersion := "0.120.0" }}
|
|
|
|
{{- if ge hugo.Version $hugoVersion }}
|
|
|
|
{{- warnf "The author key in site configuration is deprecated. Use params.author.email instead." }}
|
|
|
|
{{- end }}
|
2023-10-20 17:50:14 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}}
|
2024-08-29 10:28:34 +00:00
|
|
|
{{- $authorName := partialCached "_relearn/authorName.gotmpl" . }}
|
2023-10-20 17:50:14 +00:00
|
|
|
|
2024-04-07 21:16:37 +00:00
|
|
|
{{- $pages := .Pages }}
|
2023-10-20 17:50:14 +00:00
|
|
|
{{- $limit := .Site.Config.Services.RSS.Limit }}
|
2024-04-07 21:16:37 +00:00
|
|
|
{{- if ge $limit 1 }}
|
2023-10-20 17:50:14 +00:00
|
|
|
{{- $pages = $pages | first $limit }}
|
2021-09-27 19:06:00 +00:00
|
|
|
{{- end }}
|
2024-04-07 21:16:37 +00:00
|
|
|
|
2022-11-13 13:36:12 +00:00
|
|
|
{{- $page := . }}
|
2022-07-15 12:07:48 +00:00
|
|
|
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
2021-09-23 21:27:41 +00:00
|
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
|
|
|
<channel>
|
2024-08-29 10:28:34 +00:00
|
|
|
<title>{{ partial "title.gotmpl" (dict "page" . "fullyQualified" true "reverse" true) }}</title>
|
|
|
|
<link>{{ partial "permalink.gotmpl" (dict "to" . "abs" true) }}</link>
|
2024-08-27 13:35:48 +00:00
|
|
|
<description>{{ trim (or .Description .Summary | plainify | htmlUnescape) "\n\r\t " | transform.XMLEscape | safeHTML }}</description>
|
2024-04-22 20:43:59 +00:00
|
|
|
<generator>Hugo</generator>
|
|
|
|
<language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }}
|
2023-10-20 17:50:14 +00:00
|
|
|
<managingEditor>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }}
|
|
|
|
<webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }}
|
|
|
|
<copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }}
|
2024-04-07 21:16:37 +00:00
|
|
|
<lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
2024-02-10 22:22:35 +00:00
|
|
|
{{- with .OutputFormats.Get "rss" }}
|
2024-08-29 10:28:34 +00:00
|
|
|
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" ( partial "permalink.gotmpl" (dict "to" . "abs" true)) .MediaType | safeHTML }}
|
2024-04-22 20:43:59 +00:00
|
|
|
{{- end }}
|
2021-09-27 19:06:00 +00:00
|
|
|
{{- range $pages }}
|
2024-07-21 21:40:57 +00:00
|
|
|
{{- $visible := true }}
|
2024-08-29 10:28:34 +00:00
|
|
|
{{- if partial "_relearn/pageIsSpecial.gotmpl" . }}
|
2024-08-27 13:34:36 +00:00
|
|
|
{{- $visible = false }}
|
|
|
|
{{- else if or (eq .Kind "taxonomy") (eq .Kind "term") }}
|
2024-09-07 22:09:35 +00:00
|
|
|
{{- $visible = and .Title .Permalink (or (ne .Site.Params.disableTagHiddenPages true) (not (partialCached "_relearn/pageIsHidden.gotmpl" . .Path) ) ) }}
|
2024-07-21 21:40:57 +00:00
|
|
|
{{- else }}
|
2024-09-07 22:09:35 +00:00
|
|
|
{{- $visible = and .Title .Permalink (or (ne .Site.Params.disableSeoHiddenPages true) (not (partialCached "_relearn/pageIsHiddenSelfOrAncestor.gotmpl" (dict "page" . "to" $page) .Path $page.Path) ) ) }}
|
2024-07-21 21:40:57 +00:00
|
|
|
{{- end }}
|
2024-08-28 22:33:11 +00:00
|
|
|
{{- if $visible }}
|
2021-09-23 21:27:41 +00:00
|
|
|
<item>
|
2024-08-29 10:28:34 +00:00
|
|
|
<title>{{ partial "title.gotmpl" (dict "page" .) }}</title>
|
|
|
|
<link>{{ partial "permalink.gotmpl" (dict "to" . "abs" true) }}</link>
|
2024-06-30 08:54:48 +00:00
|
|
|
<pubDate>{{ (or .PublishDate .Date).Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
2023-10-20 17:50:14 +00:00
|
|
|
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
|
2024-08-29 10:28:34 +00:00
|
|
|
<guid>{{ partial "permalink.gotmpl" (dict "to" . "abs" true) }}</guid>
|
2024-08-27 13:35:48 +00:00
|
|
|
<description>{{ trim (or .Description .Summary | plainify | htmlUnescape) "\n\r\t " | transform.XMLEscape | safeHTML }}</description>
|
2021-09-23 21:27:41 +00:00
|
|
|
</item>
|
2022-11-13 13:36:12 +00:00
|
|
|
{{- end }}
|
2021-09-27 19:06:00 +00:00
|
|
|
{{- end }}
|
2021-09-23 21:27:41 +00:00
|
|
|
</channel>
|
|
|
|
</rss>
|