Browse Source

trying to fix rss feed

master
jk 4 years ago
parent
commit
23c1060da2
  1. 3
      layouts/_default/rss.xml

3
layouts/_default/rss.xml

@ -12,7 +12,6 @@
{{ with .OutputFormats.Get "RSS" }} {{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }} {{ end }}
{{ if eq (trim .Permalink "index.xml") (string .Site.BaseURL)}}
{{ range .Pages}} {{ range .Pages}}
<item> <item>
<title>{{ .Title }}</title> <title>{{ .Title }}</title>
@ -35,6 +34,6 @@
{{ end }} {{ end }}
</description> </description>
</item> </item>
{{ end }}
{{ end }}{{ end }
</channel> </channel>
</rss> </rss>