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 @@
<header>
<nav>
<h1><a href="/">@{{ .Site.Author.handle }}</a>s {{ .Site.Title }}.</h1>
<h1><a href="/">@{{ .Site.Params.Author.handle }}</a>s {{ .Site.Title }}.</h1>
<div class="menu">
{{ if isset .Site.Params "rsssections" }}
{{ $.Scratch.Add "sections" .Site.Params.rsssections }}
@ -13,7 +13,7 @@
{{ end }}
</li>
{{ end }}
{{ with .Site.Author.aboutpage }}<li><a href="{{ . }}">About</a></li>{{ end }}
{{ with .Site.Params.Author.aboutpage }}<li><a href="{{ . }}">About</a></li>{{ end }}
</ul>
{{ else }}
<ul>
@ -22,7 +22,7 @@
<a href="{{.URL}}">{{ .Name }}</a>
</li>
{{ end }}
{{ with .Site.Author.aboutpage }}<li><a href="{{ . }}">About</a></li>{{ end }}
{{ with .Site.Params.Author.aboutpage }}<li><a href="{{ . }}">About</a></li>{{ end }}
</ul>
{{ end }}
</div>