diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 851bf498..df06775f 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -14,39 +14,31 @@ {{ printf "" | safeHTML }} - {{ with $title }} - {{ . }} + {{ with .OutputFormats.Get "RSS" }} + {{ printf `` .Permalink .MediaType | safeHTML }} + {{ end }} + {{ with .Site.Copyright }} + {{ . }} {{ end }} - {{ .Permalink }} Recent content{{ with $title }} in {{ . }}{{ end }} {{ with .Site.LanguageCode }} {{ . }} {{ end }} + {{ if and .Date (not .Date.IsZero) }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ end }} + {{ .Permalink }} {{ with .Site.Author.email }} {{ . }} - {{ . }} - {{ end }} - {{ with .Site.Copyright }} - {{ . }} {{ end }} - {{ if and .Date (not .Date.IsZero) }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with $title }} + {{ . }} {{ end }} - {{ with .OutputFormats.Get "RSS" }} - {{ printf `` .Permalink .MediaType | safeHTML }} + {{ with .Site.Author.email }} + {{ . }} {{ end }} {{ range $pages }} - {{ with .Title }} - {{ . }} - {{ end }} - {{ with .Permalink }} - {{ . }} - {{ . }} - {{ end }} - {{ with .Date }} - {{ .Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ end }} {{ with .Site.Author.email }} {{ . }} {{ end }} @@ -55,7 +47,17 @@ {{ else if .Summary }} {{ .Summary | html }} {{ else if .Description }} - {{ .Description | markdown | html }} + {{ .Description | markdownify | html }} + {{ end }} + {{ with .Permalink }} + {{ . }} + {{ . }} + {{ end }} + {{ with .Date }} + {{ .Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ end }} + {{ with .Title }} + {{ . }} {{ end }} {{ end }}