From 9feff97a1745cc68c43cafa532d3a6191160d775 Mon Sep 17 00:00:00 2001 From: n07070 Date: Sun, 3 Jan 2021 18:36:02 +0100 Subject: [PATCH] Modifed RSS to includ full text --- layouts/_default/rss.xml | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 69d3013..4f3bc09 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -2,16 +2,34 @@ {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} - {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} - Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} - Hugo -- gohugo.io{{ with .Site.LanguageCode }} - {{.}}{{end}}{{ 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 }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} - Thanks for using RSS ! + A special machine that prints octects into text + {{ with .Site.LanguageCode }} + {{.}} + {{end}} + + {{ 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 }} + {{ $paginator := .Paginate (where .Pages "Params.displayinlist" "!=" false) -}} {{- range $paginator.Pages -}} @@ -20,8 +38,10 @@ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} - {{ if (isset .Params "description") }}{{ index .Params "description" | html }}{{ else }}{{ .Summary | html }}{{ end }} + + {{ $.Content | html }} + {{- end }} - \ No newline at end of file +