Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/blox/layouts/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{{- /* Upstream Hugo bug - RSS dates can be in future: https://github.com/gohugoio/hugo/issues/3918 */ -}}
{{- $page_context := cond .IsHome site . -}}
{{- $pages := $page_context.RegularPages -}}
{{- $pages = where $pages "Params.sitemap.disable" "!=" true -}}
{{- $limit := site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}}
{{- $pages = $pages | first $limit -}}
Expand All @@ -16,7 +17,7 @@
{{ end -}}
<description>{{ .Title | default site.Title }}</description>
<generator>HugoBlox Kit (https://hugoblox.com)</generator>
{{- with site.Language.Locale }}<language>{{.}}</language>{{end -}}
{{- with site.LanguageCode }}<language>{{.}}</language>{{end -}}
{{- with site.Copyright }}<copyright>{{ strings.ReplacePairs . "{year}" now.Year "&copy;" "Β©" | plainify }}</copyright>{{end -}}
{{- if not .Date.IsZero }}<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end -}}
{{- if .Scratch.Get "og_image" }}
Expand Down
Loading