File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22{{- /* Upstream Hugo bug - RSS dates can be in future: https://github.com/gohugoio/hugo/issues/3918 */ -}}
33{{- $page_context := cond .IsHome site . -}}
44{{- $pages := $page_context.RegularPages -}}
5+ {{- $pages = where $pages "Params.sitemap.disable" "!=" true -}}
56{{- $limit := site.Config.Services.RSS.Limit -}}
67{{- if ge $limit 1 -}}
78 {{- $pages = $pages | first $limit -}}
1617 {{ end -}}
1718 <description >{{ .Title | default site.Title }}</description >
1819 <generator >HugoBlox Kit (https://hugoblox.com)</generator >
19- {{- with site.Language.Locale }}<language >{{.}}</language >{{end -}}
20+ {{- with site.LanguageCode }}<language >{{.}}</language >{{end -}}
2021 {{- with site.Copyright }}<copyright >{{ strings.ReplacePairs . "{year}" now.Year "© " "©" | plainify }}</copyright >{{end -}}
2122 {{- if not .Date.IsZero }}<lastBuildDate >{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate >{{ end -}}
2223 {{- if .Scratch.Get "og_image" }}
You can’t perform that action at this time.
0 commit comments