diff options
| author | BigCoke233 <hi@guhub.cn> | 2025-12-17 14:52:06 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2025-12-17 14:52:06 +0800 |
| commit | ca5e718bc37d176f51f05917c6cac1e5f46cd7c4 (patch) | |
| tree | 2a3ea2106f66227ef9e40825c6f864c3c6dd8f8f /layouts/_partials | |
| parent | 9d4b513887b7028ce3627348b0fbc737bab48497 (diff) | |
fix: author map in meta tags instead of names
Diffstat (limited to 'layouts/_partials')
| -rw-r--r-- | layouts/_partials/head/siteinfo.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/layouts/_partials/head/siteinfo.html b/layouts/_partials/head/siteinfo.html index b49b5d4c..f1c4936d 100644 --- a/layouts/_partials/head/siteinfo.html +++ b/layouts/_partials/head/siteinfo.html @@ -7,7 +7,7 @@ <title>{{ $title }}</title> <link rel="canonical" href="{{ .Permalink }}" /> -<meta name="author" content="{{ .Site.Params.author }}" /> +<meta name="author" content="{{ .Site.Params.author.name }}" /> <link rel="icon" href="/favicon.ico"> <meta property="og:url" content="{{ .Permalink }}" /> <meta property="og:title" content="{{ $title }}" /> @@ -40,11 +40,11 @@ "description" : "{{ default .Summary .Description | plainify }}", {{- end }} "inLanguage" : "zh-CN", - "author" : "{{ .Site.Params.author }}", - "creator" : "{{ .Site.Params.author }}", - "publisher": "{{ .Site.Params.author }}", - "accountablePerson" : "{{ .Site.Params.author }}", - "copyrightHolder" : "{{ .Site.Params.author }}", + "author" : "{{ .Site.Params.author.name }}", + "creator" : "{{ .Site.Params.author.name }}", + "publisher": "{{ .Site.Params.author.name }}", + "accountablePerson" : "{{ .Site.Params.author.name }}", + "copyrightHolder" : "{{ .Site.Params.author.name }}", "copyrightYear" : "{{ .Date.Format "2006" }}", "datePublished": "{{ .Date }}", "dateModified" : "{{ .Date }}", |
