Changed rss feed link and content to show only posts.

Signed-off-by: Ettore Dreucci <ettore.dreucci@gmail.com>
This commit is contained in:
2019-09-28 20:23:19 +02:00
parent d1deb17dfc
commit 1a90fb9467
2 changed files with 7 additions and 2 deletions

View File

@@ -34,3 +34,8 @@ keybase = "noettore"
#social_banner = "img/banner.png"
posts_navigation = true
small_banner_logo = true
[outputFormats]
[outputFormats.RSS]
mediatype = "application/rss"
baseName = "feed"

View File

@@ -13,14 +13,14 @@
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ range .Pages }}
{{ range (where .Pages "Section" "blog") }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{- .Content | html -}}</description>
<description>{{ .Content | html }}</description>
</item>
{{ end }}
</channel>