commit 33addb711381db3a71d5ee41176acc619fa64250
parent aaf2790fbc7611365e8d886cea194d25733028ea
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sat, 30 Nov 2019 11:59:50 -0500
Use built-in author field and keep only author in <feed>
Diffstat:
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/config.toml b/config.toml
@@ -7,11 +7,13 @@ defaultContentLanguageInSubdir = true
disableKinds = ["taxonomy", "taxonomyTerm"]
disableHugoGeneratorInject = true
+[Author]
+name = "Shimmy Xu"
+
[Blackfriday]
smartypants = false
[params]
-author = "Shimmy Xu"
soresuLatexOffByDefault = true
soresuIssoHost = "/isso"
diff --git a/layouts/rss.xml b/layouts/rss.xml
@@ -3,14 +3,15 @@
<link href="{{ .Permalink }}"/>
<link href="{{ .Permalink }}index.xml" rel="self"/>
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" }}</updated>
- <author><name>{{.Site.Params.Author}}</name></author>
+ <author><name>
+ {{ .Site.Author.name }}
+ </name></author>
<id>{{ .Permalink }}</id>
{{ range where .Site.RegularPages "Section" "!=" "" }}
<entry>
<id>{{ .Permalink }}</id>
{{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title>
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" }}</updated>
- <author><name>{{.Site.Params.Author}}</name></author>
{{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
<link href="{{ .Permalink }}"/>
</entry>