From 608b3227ed05e943b774b0687ba340ca2d6b5e38 Mon Sep 17 00:00:00 2001 From: Fundor333 Date: Sat, 18 Jan 2025 18:41:35 +0100 Subject: [PATCH] Fix feed --- layouts/_default/rss.xml | 47 ---------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 layouts/_default/rss.xml diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml deleted file mode 100644 index ccad0cee..00000000 --- a/layouts/_default/rss.xml +++ /dev/null @@ -1,47 +0,0 @@ - -{{- $pctx := . -}} -{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} -{{- $pages := slice -}} -{{- if or $.IsHome $.IsSection -}} -{{- $pages = $pctx.RegularPages -}} -{{- else -}} -{{- $pages = $pctx.Pages -}} -{{- end -}} -{{- $limit := .Site.Config.Services.RSS.Limit -}} -{{- if ge $limit 1 -}} -{{- $pages = $pages | first $limit -}} -{{- end -}} -{{- $rssFeedDescription := .Site.Params.rssFeedDescription | default "summary" -}} -{{- printf "" | safeHTML }} -{{- printf "" | safeHTML }} - - - {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} - {{ .Permalink }} - Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} - Hugo -- gohugo.io - {{ site.Language.LanguageCode }}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} - {{.}}{{end}}{{ if not .Date.IsZero }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} - {{- with .OutputFormats.Get "RSS" -}} - {{ printf "" .Permalink .MediaType | safeHTML }} - {{- end -}} - {{ range $pages }} - - {{ .Title }} - {{ .Permalink }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} - {{ .Permalink }} - {{ if eq $rssFeedDescription "summary"}} - {{ .Summary | html }} - {{ else if (eq $rssFeedDescription "full")}} - {{ .Content | html }} - {{ else }} {{ errorf "Error in RSS feed generation %q" .Path }} - {{ end }} - - {{ end }} - -