summaryrefslogtreecommitdiffstats
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-01 00:54:32 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-01 00:54:32 +0200
commite928a38909d83602ffdc9c64b6eeb7aecf8eb443 (patch)
tree696f8aa6804401717e20cd2f5f23496969e74424 /layouts/partials/head.html
parentbc8cb9367c96d4d15379c1b18204a634950db2dc (diff)
downloadgohugo-theme-ed-e928a38909d83602ffdc9c64b6eeb7aecf8eb443.tar.gz
Add author partial
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index a3af22b..e7c14bd 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -5,21 +5,20 @@
{{ $description = .Site.Params.Description }}
{{- end -}}
- {{- $author := print .Site.Author.name -}}
- {{- if .Params.author -}}{{ $author = .Params.author }}{{- end }}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1.0,shrink-to-fit=no">
<link rel="canonical" href="{{ .Permalink }}">
- <title>{{ block "title" . }}{{ with .Params.Title }}{{ . }} - {{ end }}{{ .Site.Title }}{{ end }}</title>
+ <title>{{ block "title" . }}{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Params.Title }}{{ . }} - {{ end }}{{ .Site.Title }}{{ end }}{{ end }}</title>
<meta name="description" content="{{ $description }}">
+ <meta name="author" content="{{ (partial "author.html" . ) }}">
{{ hugo.Generator }}
<!-- Dublin Core metadata for Zotero -->
<meta property="dc:title" content="{{ .Title }}">
- <meta property="dc:creator" content="{{ $author }}">
+ <meta property="dc:creator" content="{{ (partial "author.html" . ) }}">
<meta property="dc:identifier" content="{{ .Permalink }}">
{{- if .Params.editor }}<meta property="dc:contributor" content="{{ .Params.editor }}">{{ end }}
{{- if .Params.date }}<meta property="dc:date" content="{{ .Params.date }}">{{ end }}