Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/gohugoioTheme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Oliff <christianoliff@pm.me>2020-08-07 07:15:24 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-08-07 09:51:50 +0300
commitcf34ae1c59a942972b2614aed6b01ef90b32eb61 (patch)
tree0810a570587565a3027f188f80f2df86824c01d7
parentb658a7ef8c784fbfab2f5e0f22de3c7581b9e344 (diff)
Add meta description.
Partial fix for: https://github.com/gohugoio/hugoDocs/issues/1160
-rw-r--r--layouts/_default/baseof.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index a83d3f66..0de21a25 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -39,6 +39,8 @@
{{ $.Scratch.Set "stylesheet" . }}
{{end}}
+ <meta name="description"
+ content="{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
{{ block "scripts" . }}
{{- partial "site-scripts.html" . -}}
@@ -53,9 +55,6 @@
{{ partial "gtag" . }}
{{ end }}
-
-
-
</head>
<body class="ma0 sans-serif bg-primary-color-light{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}">
@@ -69,4 +68,4 @@
</body>
-</html> \ No newline at end of file
+</html>