diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2024-09-29 16:24:00 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <git@serghei.pl> | 2024-09-29 18:15:42 +0200 |
| commit | a479edbe9e92918fea0946bd95a9ace72826e297 (patch) | |
| tree | 7b362840c92b0fe0566922ec456ee964723c5505 | |
| parent | 62c2430eeba3a28aef4a15ef4816c3987d969af7 (diff) | |
| download | gohugo-theme-ed-a479edbe9e92918fea0946bd95a9ace72826e297.tar.gz | |
Do not check showAuthor for meta tag
| -rw-r--r-- | layouts/partials/head.html | 4 |
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 }} |
