diff options
author | Christian Oliff <christianoliff@pm.me> | 2020-08-07 07:15:24 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-08-07 09:51:50 +0300 |
commit | cf34ae1c59a942972b2614aed6b01ef90b32eb61 (patch) | |
tree | 0810a570587565a3027f188f80f2df86824c01d7 | |
parent | b658a7ef8c784fbfab2f5e0f22de3c7581b9e344 (diff) |
Add meta description.
Partial fix for: https://github.com/gohugoio/hugoDocs/issues/1160
-rw-r--r-- | layouts/_default/baseof.html | 7 |
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> |