2019-11-26 21:46:27 +01:00
|
|
|
{{- $pctx := . -}}
|
|
|
|
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
|
|
|
{{- $pages := $pctx.RegularPages -}}
|
|
|
|
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
|
|
|
{{- if ge $limit 1 -}}
|
|
|
|
{{- $pages = $pages | first $limit -}}
|
|
|
|
{{- end -}}
|
2019-11-20 19:56:22 +01:00
|
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
2019-11-20 23:52:38 +01:00
|
|
|
<channel>
|
2020-12-28 20:12:36 +01:00
|
|
|
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
2019-11-20 23:52:38 +01:00
|
|
|
<link>{{ .Permalink }}</link>
|
2020-12-28 20:12:36 +01:00
|
|
|
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
|
|
|
<generator>Hugo {{ hugo.Version }} -- gohugo.io</generator>
|
2021-07-09 13:39:25 +02:00
|
|
|
{{- with .Lang }}
|
2019-11-20 23:52:38 +01:00
|
|
|
<language>{{ . }}</language>
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Site.Author.email }}
|
|
|
|
<managingEditor>{{ . }}{{ with $.Site.Author.name }} ({{ . }}){{ end }}</managingEditor>
|
2020-12-28 20:12:36 +01:00
|
|
|
<webMaster>{{ . }}{{ with $.Site.Author.name }} ({{ . }}){{ end }}</webMaster>
|
2019-11-20 23:52:38 +01:00
|
|
|
{{- end }}
|
|
|
|
{{- with .Site.Copyright }}
|
|
|
|
<copyright>{{ . }}</copyright>
|
|
|
|
{{- end }}
|
|
|
|
{{- if not .Date.IsZero }}
|
|
|
|
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>
|
|
|
|
{{- end }}
|
|
|
|
{{- with .OutputFormats.Get "RSS" }}
|
|
|
|
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
|
|
|
{{- end }}
|
2020-12-28 20:12:36 +01:00
|
|
|
{{- range $pages }}
|
2019-11-20 23:52:38 +01:00
|
|
|
<item>
|
|
|
|
<title>{{ .Title }}</title>
|
|
|
|
<link>{{ .Permalink }}</link>
|
|
|
|
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
|
|
|
{{- with .Site.Author.email }}
|
2020-12-28 20:12:36 +01:00
|
|
|
<author>{{ . }}{{ with $.Site.Author.name }} ({{ . }}){{ end }}</author>
|
2019-11-20 23:52:38 +01:00
|
|
|
{{- end }}
|
2020-12-28 20:12:36 +01:00
|
|
|
<guid isPermaLink="true">{{ .Permalink }}</guid>
|
|
|
|
<description>{{ .Content | html }}</description>
|
2019-11-20 23:52:38 +01:00
|
|
|
</item>
|
|
|
|
{{- end }}
|
|
|
|
</channel>
|
2019-11-20 19:56:22 +01:00
|
|
|
</rss>
|