fix: migrate ".Site.Author" to ".Site.Params.Author" (#17)

* feat: migrate ".Site.Author" to ".Site.Params.Author"
* feat: update README
This commit is contained in:
Dan Xin 2024-11-09 03:16:58 +08:00 committed by GitHub
parent d47670bc5d
commit 558b8b4ae0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 26 additions and 26 deletions

View file

@ -1,6 +1,6 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>@{{ .Site.Author.handle }}s {{ .Site.Title }}{{ with .Title }} - {{ . }}{{ end }}</title>
<title>@{{ .Site.Params.Author.handle }}s {{ .Site.Title }}{{ with .Title }} - {{ . }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>All entries {{ with .Title }}in {{.}} {{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>
@ -17,7 +17,7 @@
{{ end }}
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
<author>{{ with .Site.Author.email }}{{.}} - {{end}}{{ with .Site.Author.firstname }}{{.}}{{ end }} {{ with .Site.Author.lastname }}{{.}}{{end}}</author>
<author>{{ with .Site.Params.Author.email }}{{.}} - {{end}}{{ with .Site.Params.Author.firstname }}{{.}}{{ end }} {{ with .Site.Params.Author.lastname }}{{.}}{{end}}</author>
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>
</item>