2024-04-27 12:38:19 +00:00
|
|
|
{{- /* based on Hugo 0.125.5 rss.xml */}}
|
2022-11-13 10:33:32 +00:00
|
|
|
{{- partialCached "page-meta.hugo" . .RelPermalink }}
|
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 */}}
|
2023-10-20 18:08:37 +00:00
|
|
|
{{- $authorName := partialCached "authorname.hugo" . }}
|
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-07-21 22:15:38 +00:00
|
|
|
<title>{{ partial "pageHelper/title.hugo" (dict "page" . "fullyQualified" true "reverse" true) }}</title>
|
2022-11-15 06:34:06 +00:00
|
|
|
<link>{{ partial "relLangPrettyUglyURL.hugo" (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" }}
|
2022-11-15 06:34:06 +00:00
|
|
|
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" ( partial "relLangPrettyUglyURL.hugo" (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 }}
|
2022-11-13 13:36:12 +00:00
|
|
|
{{- $relearnIsHiddenFrom := index ($page.Scratch.Get "relearnIsHiddenFrom") .RelPermalink }}
|
2024-08-27 13:34:36 +00:00
|
|
|
{{- if partial "pageHelper/isRelearnSpecialPage.html" . }}
|
|
|
|
{{- $visible = false }}
|
|
|
|
{{- else if or (eq .Kind "taxonomy") (eq .Kind "term") }}
|
2024-07-21 21:40:57 +00:00
|
|
|
{{- $visible = and .Title .Permalink (or (not $relearnIsHiddenFrom) (ne .Site.Params.disableTagHiddenPages true) ) }}
|
|
|
|
{{- else }}
|
|
|
|
{{- $visible = and .Title .Permalink (or (not $relearnIsHiddenFrom) (ne .Site.Params.disableSeoHiddenPages true) ) }}
|
|
|
|
{{- end }}
|
2024-08-28 22:33:11 +00:00
|
|
|
{{- if $visible }}
|
2021-09-23 21:27:41 +00:00
|
|
|
<item>
|
2024-07-21 22:15:38 +00:00
|
|
|
<title>{{ partial "pageHelper/title.hugo" (dict "page" .) }}</title>
|
2022-11-15 06:34:06 +00:00
|
|
|
<link>{{ partial "relLangPrettyUglyURL.hugo" (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 }}
|
2022-11-15 06:34:06 +00:00
|
|
|
<guid>{{ partial "relLangPrettyUglyURL.hugo" (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>
|