diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 7169220a..4d20ac6e 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -24,8 +24,8 @@ {{- /* Meta */ -}}
- {{- $author := $params.author | default .Site.Author.name | default (T "author") -}} - {{- $authorLink := $params.authorlink | default .Site.Author.link | default .Site.Home.RelPermalink -}} + {{- $author := $params.author | default .Site.Params.author.name | default (T "author") -}} + {{- $authorLink := $params.authorlink | default .Site.Params.author.link | default .Site.Home.RelPermalink -}} {{- $options := dict "Class" "author" "Destination" $authorLink "Title" "Author" "Rel" "author" "Icon" (dict "Class" "fas fa-user-circle fa-fw") "Content" $author -}} {{- partial "plugin/a.html" $options -}} diff --git a/layouts/index.rss.xml b/layouts/index.rss.xml index 355c26a5..18a75c7b 100644 --- a/layouts/index.rss.xml +++ b/layouts/index.rss.xml @@ -15,12 +15,12 @@ {{- . -}} {{- end -}} - {{- with .Site.Author.email -}} + {{- with .Site.Params.author.email -}} - {{- . }}{{ with $.Site.Author.name }} ({{ . }}){{ end -}} + {{- . }}{{ with $.Site.Params.author.name }} ({{ . }}){{ end -}} - {{- . }}{{ with $.Site.Author.name }} ({{ . }}){{ end -}} + {{- . }}{{ with $.Site.Params.author.name }} ({{ . }}){{ end -}} {{- end -}} {{- with .Site.Copyright -}} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f21a1973..ab626dc3 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -32,7 +32,7 @@ {{- /* Author */ -}} {{- if ne .Site.Params.footer.author false -}} -  {{ .Site.Author.name }} +  {{ .Site.Params.author.name }} {{- end -}} {{- /* License */ -}} diff --git a/layouts/partials/head/seo.html b/layouts/partials/head/seo.html index d431ad06..2bb3f6d2 100644 --- a/layouts/partials/head/seo.html +++ b/layouts/partials/head/seo.html @@ -26,7 +26,7 @@ {{- with .Site.LanguageCode -}} "inLanguage": "{{ . }}", {{- end -}} - {{- with .Site.Author.name -}} + {{- with .Site.Params.author.name -}} "author": { "@type": "Person", "name": {{ . | safeHTML }} @@ -122,7 +122,7 @@ {{- with .Site.Copyright -}} "license": {{ . | safeHTML }}, {{- end -}} - {{- $publisher := .Params.author | default .Site.Author.name | default (T "author") | dict "name" -}} + {{- $publisher := .Params.author | default .Site.Params.author.name | default (T "author") | dict "name" -}} {{- $publisher = $params.seo.publisher | default dict | merge $publisher -}} "publisher": { "@type": "Organization", @@ -141,7 +141,7 @@ {{- end -}} {{- end -}} }, - {{- with .Params.author | default .Site.Author.name | default (T "author") -}} + {{- with .Params.author | default .Site.Params.author.name | default (T "author") -}} "author": { "@type": "Person", "name": {{ . | safeHTML }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f8eca38c..0d55592f 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -57,7 +57,7 @@ - {{- if .Site.IsMultiLingual -}} + {{- if hugo.IsMultilingual -}}