From 36150b5f88b2e513c6791b62aaf5eb3401d1c8a2 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 22 May 2022 20:01:48 +0200 Subject: Rework feeds to provide support for section --- layouts/_default/home.feed.xml | 45 ------------------------------------------ 1 file changed, 45 deletions(-) delete mode 100644 layouts/_default/home.feed.xml (limited to 'layouts/_default/home.feed.xml') diff --git a/layouts/_default/home.feed.xml b/layouts/_default/home.feed.xml deleted file mode 100644 index 714bc07..0000000 --- a/layouts/_default/home.feed.xml +++ /dev/null @@ -1,45 +0,0 @@ -{{ safeHTML "" }} - - - {{ printf `<![CDATA[%s RSS 2.0]]>` site.Title | safeHTML }} - - {{ site.BaseURL | absURL }} - {{ $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png" ) }}{{ $logo = $logo.Resize "96x96" }} - - {{ $logo.Permalink | absURL }} - {{ printf `<![CDATA[%s RSS 2.0]]>` site.Title | safeHTML }} - {{ site.BaseURL | absURL }} - {{ $logo.Width }} - {{ $logo.Height }} - - - {{ with site.Home.OutputFormats.Get "FEED"}}{{end}} - {{ with site.Home.OutputFormats.Get "ATOM"}}{{end}} - {{ with site.Home.OutputFormats.Get "JSON"}}{{end}} - {{ with site.Params.description }}{{ printf `` . | safeHTML }}{{ end }} - Hugo {{ hugo.Version }} - {{ with site.Author.name }}{{ printf `` . | safeHTML }}{{ end }} - {{ with site.LanguageCode }}{{ . }}{{ end }} - {{ with site.Params.Copyright }}{{ printf `` . | safeHTML }}{{ end }} - {{ if not site.LastChange.IsZero }}{{ site.LastChange.UTC.Format site.Params.dateFormatRFC822Z | html }}{{ end }} - {{ $feedsize := site.Params.feedSize | default 25 }} - {{- range first $feedsize (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections) }} - - {{ printf `<![CDATA[%s]]>` .Title | safeHTML }} - {{ .Permalink | absURL }} - {{ .PublishDate.UTC.Format site.Params.dateFormatRFC822Z | html }} - {{ .Section }} - {{ range (.GetTerms "tags") }}{{ .LinkTitle }}{{end}} - {{ md5 .Permalink }} - {{ printf `` .Summary | safeHTML }} - - {{ end }} - -- cgit v1.2.3