diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-01 11:56:29 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-01 11:56:29 +0200 |
| commit | 4c3f5c2b8c890be8798d1bf25205d8249fe8faec (patch) | |
| tree | c8ca654c9e87420b565a2ba976e0a0adfbc8775f /layouts/partials/head.html | |
| parent | a135e9bc110cb3337101e7e9d6d29c391430b0fc (diff) | |
| download | gohugo-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.html | 6 |
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" . }} |
