Skip to content

Commit

Permalink
Do not check showAuthor for meta tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Sep 29, 2024
1 parent f02ca27 commit 2a7de60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit 2a7de60

Please sign in to comment.