feat: move author field to params.toml

This commit is contained in:
Wen Junhua
2023-11-12 18:52:28 +08:00
parent e3015b9006
commit 2dd90e3d20
14 changed files with 80 additions and 114 deletions
+2 -2
View File
@@ -117,8 +117,8 @@
{{/* Schema */}}
{{ partial "schema.html" . }}
{{/* Me */}}
{{ with .Site.Author.name }}<meta name="author" content="{{ . }}" />{{ end }}
{{ with .Site.Author.links }}
{{ with .Site.Params.Author.name }}<meta name="author" content="{{ . }}" />{{ end }}
{{ with .Site.Params.Author.links }}
{{ range $links := . }}
{{ range $name, $url := $links }}<link href="{{ $url }}" rel="me" />{{ end }}
{{ end }}