summaryrefslogtreecommitdiff
path: root/layouts/index.atom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.atom.xml')
-rw-r--r--layouts/index.atom.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml
index 3fbf10b..d31c3fd 100644
--- a/layouts/index.atom.xml
+++ b/layouts/index.atom.xml
@@ -7,7 +7,8 @@
<link href="{{ .Permalink }}" rel="alternate" />
<author>
<name>{{ .Site.Params.author.name }}</name>
- <email>{{ .Site.Params.author.email }}</email>
+ {{- with .Site.Params.author.email }}
+ <email>{{ . }}</email>{{ end }}
</author>
<generator>Hugo -- gohugo.io</generator>
<rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</rights>