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 | d5d26b9ca5ecb3121ce1a38cea08bfc4b3a7b8a0 (patch) | |
| tree | 2a3ea2106f66227ef9e40825c6f864c3c6dd8f8f | |
| parent | bce07611f8023c0a361bcb9c7291a2086734478f (diff) | |
fix: author map in meta tags instead of names
Former-commit-id: ca5e718bc37d176f51f05917c6cac1e5f46cd7c4
| -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 }}", |
