added author to atom/rss feed

This commit is contained in:
Nils Schulte 2019-12-16 11:08:23 +01:00
parent dbd3c757eb
commit 6e55ca6c52
2 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,11 @@
baseURL = "https://nilsschulte.de/"
languageCode = "en-us"
title = "nilsschulte.de"
copyright = "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License."
[author]
name = "Nils Schulte"
email = "blog@nilsschulte.de"
pygmentsCodeFences = true
pygmentsCodeFencesGuessSyntax = true

View File

@ -7,8 +7,8 @@
{{ end }}
<updated>{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}</updated>
<author>
{{ with $.Site.Author.name }}<name>{{ . }}</name>{{ end }}
{{ with $.Site.Author.email }}<email>{{ . }}</email>{{ end }}
{{ with $.Site.Author.name }}<name>{{.}}</name>{{end}}
{{ with $.Site.Author.email }}<email>{{.}}</email>{{end}}
</author>
<generator>Hugo</generator>
<id>{{ .Permalink }}</id>
@ -19,7 +19,7 @@
<id>{{ .Permalink }}</id>
<published>{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}</published>
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}</updated>
<summary>{{ .Content | html }}</summary>
<summary type="html">{{ .Content | html }}</summary>
{{ range .Params.tags }}
<category term="{{ . }}"/>
{{ end }}