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,14 +1,14 @@
<footer>
<div class="footer_text">
<div>
<h3>Hi, <a href="{{ .Site.Author.aboutpage }}">I'm {{ .Site.Author.firstname }}</a></h3>
<h3>Hi, <a href="{{ .Site.Params.Author.aboutpage }}">I'm {{ .Site.Params.Author.firstname }}</a></h3>
<p>
{{ partial "bio.html" . }}
</p>
</div>
{{ if isset .Site.Author "flickrid" | and ( not ( eq .Site.Author.flickrid "" ) ) }}
{{ if isset .Site.Params.Author "flickrid" | and ( not ( eq .Site.Params.Author.flickrid "" ) ) }}
<div>
<h3><a href="https://www.flickr.com/photos/{{ .Site.Author.flickrid }}/">Photo Stream</a></h3>
<h3><a href="https://www.flickr.com/photos/{{ .Site.Params.Author.flickrid }}/">Photo Stream</a></h3>
<div id="photos"></div>
</div>
</div>
@ -17,8 +17,8 @@
{{ if .Site.Params.showcopyright }}
<div class="footer_copyright">
&copy; {{ now.Format "2006" }} <a href="{{ .Site.Author.aboutpage }}">{{ .Site.Author.firstname }} {{ .Site.Author.lastname }}</a>
{{ with .Site.Author.location }} - Made in {{ . }}{{ end }}
&copy; {{ now.Format "2006" }} <a href="{{ .Site.Params.Author.aboutpage }}">{{ .Site.Params.Author.firstname }} {{ .Site.Params.Author.lastname }}</a>
{{ with .Site.Params.Author.location }} - Made in {{ . }}{{ end }}
</div>
{{ end }}
</footer>