summaryrefslogtreecommitdiffstats
path: root/layouts/partials/schema.org/article.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2024-04-14 15:30:44 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2024-04-14 15:38:50 +0200
commit23d77288040ca113dbc797aa2eaff6ba2a32f324 (patch)
treec14a8417684dd54ea7425f7bc64d52d315973ad4 /layouts/partials/schema.org/article.html
parent77b73fceb49bff397dab6badb7df8e821960fe2b (diff)
downloadgohugo-theme-ed-23d77288040ca113dbc797aa2eaff6ba2a32f324.tar.gz
Move site author configuration to params
Diffstat (limited to 'layouts/partials/schema.org/article.html')
-rw-r--r--layouts/partials/schema.org/article.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/partials/schema.org/article.html b/layouts/partials/schema.org/article.html
index fcec66b..f4112b6 100644
--- a/layouts/partials/schema.org/article.html
+++ b/layouts/partials/schema.org/article.html
@@ -13,6 +13,8 @@
{{- $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png") -}}
{{- $logo = $logo.Resize "96x96" }}
+{{- $siteAuthor := partial "site-author.html" . }}
+
<script type="application/ld+json" id="schema-data">
{
"@context": "https://schema.org",
@@ -51,10 +53,10 @@
],
{{- end }}
{{- else }}
- {{- with site.Author.name }}
+ {{- with $siteAuthor.name }}
"author": {
"@type": "Person",
- "name": {{ . }}{{ with site.Author.twitter }},
+ "name": {{ . }}{{ with $siteAuthor.twitter }},
"url": "https://twitter.com/{{ . }}"{{ end }}
},
{{- end }}