summaryrefslogtreecommitdiffstats
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-16 00:33:53 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-16 00:33:53 +0200
commitcfc3f2c8c067d47505e64b1445c4692316fd4eb6 (patch)
tree0f88f5e4ffb31b9b7484865945c2612d7b684069 /layouts/partials/head.html
parent046753f526fb3247855886d229768076667fd1a1 (diff)
downloadgohugo-theme-ed-cfc3f2c8c067d47505e64b1445c4692316fd4eb6.tar.gz
Introduce description partial
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html7
1 files changed, 1 insertions, 6 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index abb4cbe..478410a 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,10 +1,5 @@
{{/* */}}
<head>
- {{- $description := print .Params.Description -}}
- {{- if or .IsHome (eq .Params.Description "") (not .Params.Description) -}}
- {{ $description = site.Params.Description }}
- {{- 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">
@@ -13,7 +8,7 @@
<link type="text/plain" rel="author" href="{{ "humans.txt" | absURL }}">
<title>{{ block "title" . }}{{ if .IsHome }}{{ site.Title }}{{ else }}{{ with .Params.Title }}{{ . }} - {{ end }}{{ site.Title }}{{ end }}{{ end }}</title>
- <meta name="description" content="{{ $description }}">
+ <meta name="description" content="{{ (partial "description.html" . ) }}">
<meta name="author" content="{{ (partial "author.html" . ) }}">
{{ hugo.Generator }}