Enable RSS feeds

This commit is contained in:
Jan Kremer 2024-03-27 17:44:36 +01:00
parent 519e7a94d1
commit 812e2bc0cc
Signed by: jan
GPG key ID: A7DA689CB3B078EC
2 changed files with 10 additions and 4 deletions

View file

@ -1,6 +1,12 @@
baseURL = 'https://jankremer.eu/' baseURL = 'https://jankremer.eu/'
languageCode = 'de' languageCode = 'de'
title = 'Jan Kremer' title = 'Jan Kremer'
copyright = 'CC-BY-SA 4.0'
[params]
[params.author]
name = 'Jan Kremer'
email = 'mail@jankremer.eu'
[[menus.main]] [[menus.main]]
name = 'Home' name = 'Home'
@ -26,6 +32,3 @@ weight = 40
name = 'Über mich' name = 'Über mich'
pageRef = '/about' pageRef = '/about'
weight = 50 weight = 50
[outputs]
home = ["HTML", "RSS", "JSON"]

View file

@ -33,7 +33,10 @@
<pubDate>{{ .Date.Format "2006-01-02 15:04" | safeHTML }}</pubDate> <pubDate>{{ .Date.Format "2006-01-02 15:04" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}} {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid> <guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description> <description>
<p><strong>{{ .Description | html }}</strong></p>
{{ .Content | html }}
</description>
</item> </item>
{{ end }} {{ end }}
</channel> </channel>