Feeds: Fix reference of author info in Atom feed

This commit is contained in:
hedy 2022-05-07 16:35:05 +08:00
parent 6afaf4ceb3
commit e654c0c9f1
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
1 changed files with 4 additions and 4 deletions

View File

@ -16,8 +16,8 @@
{{- $p := . -}}
{{- with .OutputFormats.Get "gemtext" }}
<author>
<name>{{ .Site.Author.Name }}</name>
<email>{{ .Site.Author.Email }}</email>
<name>{{ $.Site.Author.name }}</name>
<email>{{ $.Site.Author.email }}</email>
</author>
<entry>
{{- $perm := replace (replace .Permalink "/gemini" "" 1) "/index.gmi" ".gmi" 1 }}
@ -26,8 +26,8 @@
<id>{{ $perm }}</id>
<updated>{{ $p.Date.Format "2006-01-02" }}T12:00:00Z</updated>
<author>
<name>{{ .Site.Author.Name }}</name>
<email>{{ .Site.Author.Email }}</email>
<name>{{ $.Site.Author.name }}</name>
<email>{{ $.Site.Author.email }}</email>
</author>
</entry>
{{end}}