summaryrefslogtreecommitdiffstats
path: root/layouts/partials
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2024-09-29 16:24:00 +0200
committerSerghei Iakovlev <git@serghei.pl>2024-09-29 18:15:42 +0200
commita479edbe9e92918fea0946bd95a9ace72826e297 (patch)
tree7b362840c92b0fe0566922ec456ee964723c5505 /layouts/partials
parent62c2430eeba3a28aef4a15ef4816c3987d969af7 (diff)
downloadgohugo-theme-ed-a479edbe9e92918fea0946bd95a9ace72826e297.tar.gz
Do not check showAuthor for meta tag
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/head.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 0a4b02a..4e54fbf 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -8,9 +8,7 @@
<meta name="description" content="{{ partial "description.html" . }}">
<meta name="keywords" content="{{ delimit (partial "keywords.html" .) ", " }}">
- {{ $showAuthor := .Site.Params.showAuthor | default false }}
- {{- $author := partial "head/author.html" . }}
- {{ if (and $showAuthor (ne $author ""))}}
+ {{ with partial "head/author.html" . }}
<meta name="author" content="{{ $author }}">
{{- end }}