From 7b66fe7b4fa545570aeeae3ca5ab2808ae13db76 Mon Sep 17 00:00:00 2001 From: Marco Balmer <micressor@secure.mailbox.org> Date: Sun, 9 Dec 2018 17:02:16 +0100 Subject: [PATCH] ATOM 1.0 feed is now valid --- themes/briar/layouts/rss.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/briar/layouts/rss.xml b/themes/briar/layouts/rss.xml index a382a28..06096ae 100644 --- a/themes/briar/layouts/rss.xml +++ b/themes/briar/layouts/rss.xml @@ -12,7 +12,7 @@ <name>{{.}}</name>{{ with $.Site.Author.email }} <email>{{.}}</email>{{end}} </author>{{end}} - <generator>Hugo -- gohugo.io</generator>{{ range first 15 (where .Data.Pages "Type" "in" .Site.Params.mainSections) }} + <generator>Hugo -- gohugo.io</generator>{{ range .Pages }} <entry> {{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title> <link href="{{ .Permalink }}"/> @@ -22,7 +22,7 @@ </author>{{end}} <published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published> <updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated> - <summary>{{ .Summary }}</summary> + {{`<summary><![CDATA[` | safeHTML }}{{ with .Param "description" }}{{ . }}{{ else }}{{ .Summary }}{{ end }}]]></summary> <!-- Disable atom content {{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content> --> -- GitLab