diff options
author | Cedric <cedric@cedricbonhomme.org> | 2022-06-13 21:36:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 21:36:38 +0300 |
commit | 67474957d7cfd7da342df3c4908b1162effc5e2d (patch) | |
tree | d60cfb71ccefe8ce66e0f2097eb75651f930f27a | |
parent | 06847f35a19834ff26c60b691522107fa201a7a5 (diff) |
feat: trim the whitespace from the HTML meta tags (#367)
Co-authored-by: cedricbonhomme <cedricbonhomme@users.noreply.github.com>
Co-authored-by: Alexander Bilz <mail@alexbilz.com>
-rw-r--r-- | layouts/partials/head.html | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 3918162..5e5ccdd 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -5,11 +5,11 @@ {{ . }} | {{ end }} - {{ .Site.Params.author }} + {{- .Site.Params.author -}} {{ else }} - {{ .Site.Params.author }}{{ with .Title }} + {{- .Site.Params.author -}}{{ with .Title }} | {{ . }} @@ -18,6 +18,7 @@ {{ end }} + </title> <!-- Meta --> @@ -28,11 +29,11 @@ <meta name="description" content="{{ if .Params.description }} - {{ .Params.description }} + {{- .Params.description -}} {{ else }} - {{ .Site.Params.description }} + {{- .Site.Params.description -}} {{ end }}" |