diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-03-13 18:15:26 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-03-13 18:15:51 +0100 |
commit | 0d1ba29999a500166fa77187cf5c664942d09e57 (patch) | |
tree | ad3f3f127d4b1802f4e0611e33d19e2c1f825e1b /layouts/partials/docs | |
parent | 13ef4c1efc70d601bcd8efa5bca53419003b5ea1 (diff) |
#177, #176 Simplify description in html head
Diffstat (limited to 'layouts/partials/docs')
-rw-r--r-- | layouts/partials/docs/html-head.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 6e3067e..da24b27 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -1,6 +1,6 @@ <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> -<meta name="description" content="{{ with .Description }} {{ . }} {{ else }} {{ with .Summary }} {{ . }} {{ else }} {{ with .Site.Params.description }} {{ . }} {{ else }} {{ partial "docs/title" . }} {{ end }} {{ end }} {{ end }}"> +<meta name="description" content="{{ default .Summary .Description }}"> {{- template "_internal/opengraph.html" . -}} |