From c6d0941592bd5fd4626a66fe97d0d964e4a46e90 Mon Sep 17 00:00:00 2001 From: jk Date: Wed, 10 Mar 2021 10:37:50 +0000 Subject: [PATCH] trying to fix rss feed --- layouts/_default/rss.xml | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 39d1cc14..70f290fd 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -12,31 +12,7 @@ {{ with .OutputFormats.Get "RSS" }} {{ printf "" .Permalink .MediaType | safeHTML }} {{ end }} - {{ if eq (trim .Permalink "index.xml") (string .Site.BaseURL)}} - {{ range where .Site.Pages "Kind" "page" }} - - {{ .Title }} - {{ .Permalink }} - {{ if eq .Params.posttype "in-reply-to" }}{{ index .Params "in-reply-to" }}{{ end }} - {{ if eq .Params.posttype "like-of" }}{{ index .Params "like-of" }}{{ end }} - {{ if eq .Params.posttype "repost-of" }}{{ index .Params "repost-of" }}{{ end }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} - {{ .Permalink }} - - {{ .Content | plainify }} - ({{ .Permalink }}) - {{ range .Params.Photo }} - {{ if not ( in . "http" ) }} - - {{ else }} - - {{ end }} - {{ end }} - - - {{ end }} - {{else}} + {{ range .Pages}} {{ .Title }}