From 0eb66543c79dc820c52ae652ac02313e53c7d612 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Sun, 31 Oct 2021 21:23:50 +0100 Subject: [PATCH] moved rss layout --- layouts/{_default/rss.xml => index.xml} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename layouts/{_default/rss.xml => index.xml} (93%) diff --git a/layouts/_default/rss.xml b/layouts/index.xml similarity index 93% rename from layouts/_default/rss.xml rename to layouts/index.xml index 4d97e2c..cb8f9e0 100644 --- a/layouts/_default/rss.xml +++ b/layouts/index.xml @@ -22,12 +22,12 @@ {{.}}{{ 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 }} - {{ .Site.Params.Logo | default "/img/icon.svg" | absURL }} {{- with .OutputFormats.Get "RSS" -}} {{ printf "" .Permalink .MediaType | safeHTML }} {{- end -}} + {{ .Site.Params.Logo | default "/img/icon.svg" | absURL }} {{ range $pages }} - {{ if not .Norss }} + {{ if not ( .Params.norss | default false) }} {{ .Title }} {{ .Permalink }} @@ -35,8 +35,8 @@ {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Summary | html }} - {{ if .Image }} - + {{ if .Params.image }} + {{ end }} {{ end }}