From 6e55ca6c5259f32fb447d229d863dbbfa31bd1e2 Mon Sep 17 00:00:00 2001 From: Nils Schulte Date: Mon, 16 Dec 2019 11:08:23 +0100 Subject: [PATCH] added author to atom/rss feed --- config.toml | 4 ++++ layouts/_default/list.atom.xml | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/config.toml b/config.toml index ea94f0b..e75514d 100644 --- a/config.toml +++ b/config.toml @@ -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 diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index ff9d5aa..4634789 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -7,8 +7,8 @@ {{ end }} {{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }} - {{ with $.Site.Author.name }}{{ . }}{{ end }} - {{ with $.Site.Author.email }}{{ . }}{{ end }} + {{ with $.Site.Author.name }}{{.}}{{end}} + {{ with $.Site.Author.email }}{{.}}{{end}} Hugo {{ .Permalink }} @@ -19,7 +19,7 @@ {{ .Permalink }} {{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }} {{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }} - {{ .Content | html }} + {{ .Content | html }} {{ range .Params.tags }} {{ end }}