summaryrefslogtreecommitdiffstats
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-01 11:56:29 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-01 11:56:29 +0200
commit4c3f5c2b8c890be8798d1bf25205d8249fe8faec (patch)
treec8ca654c9e87420b565a2ba976e0a0adfbc8775f /layouts/partials/head.html
parenta135e9bc110cb3337101e7e9d6d29c391430b0fc (diff)
downloadgohugo-theme-ed-4c3f5c2b8c890be8798d1bf25205d8249fe8faec.tar.gz
Use site function instead of .Site or $.Site
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 5c76d9f..f4303e1 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -2,7 +2,7 @@
<head prefix="og: http://ogp.me/ns#; dc: http://purl.org/dc/terms/#">
{{- $description := print .Params.Description -}}
{{- if or .IsHome (eq .Params.Description "") (not .Params.Description) -}}
- {{ $description = .Site.Params.Description }}
+ {{ $description = site.Params.Description }}
{{- end -}}
<meta charset="utf-8">
@@ -11,7 +11,7 @@
<link rel="canonical" href="{{ .Permalink }}">
- <title>{{ block "title" . }}{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Params.Title }}{{ . }} - {{ end }}{{ .Site.Title }}{{ end }}{{ 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 }}
@@ -23,7 +23,7 @@
{{- if .Params.editor }}<meta property="dc:contributor" content="{{ .Params.editor }}">{{ end }}
{{- if .Params.date }}<meta property="dc:date" content="{{ .Params.date }}">{{ end }}
{{- if .Params.rights }}<meta property="dc:rights" content="{{ .Params.rights }}">{{ end }}
- <meta property="dc:source" content="{{ if .Params.source }}{{ .Params.source }}{{ else }}{{ .Site.Title }}{{ end }}">
+ <meta property="dc:source" content="{{ if .Params.source }}{{ .Params.source }}{{ else }}{{ site.Title }}{{ end }}">
{{- /* Misc */}}
{{template "partials/templates/opengraph.html" . }}