2024-04-22 20:43:59 +00:00
|
|
|
{{- /* based on Hugo 0.125.3 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>
|
2023-10-20 17:50:14 +00:00
|
|
|
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
2022-11-15 06:34:06 +00:00
|
|
|
<link>{{ partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true) }}</link>
|
2023-10-20 17:50:14 +00:00
|
|
|
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }}</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 }}
|
2022-11-13 13:36:12 +00:00
|
|
|
{{- $relearnIsHiddenFrom := index ($page.Scratch.Get "relearnIsHiddenFrom") .RelPermalink }}
|
|
|
|
{{- if and .Permalink .Title (or (not $relearnIsHiddenFrom) (ne .Site.Params.disableSeoHiddenPages true) ) }}
|
2021-09-23 21:27:41 +00:00
|
|
|
<item>
|
|
|
|
<title>{{ .Title }}</title>
|
2022-11-15 06:34:06 +00:00
|
|
|
<link>{{ partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true) }}</link>
|
2024-04-07 21:16:37 +00:00
|
|
|
<pubDate>{{ .PublishDate.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-04-07 21:16:37 +00:00
|
|
|
<description>{{ .Summary | 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>
|