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

github.com/lxndrblz/anatole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric <cedric@cedricbonhomme.org>2022-06-13 21:36:38 +0300
committerGitHub <noreply@github.com>2022-06-13 21:36:38 +0300
commit67474957d7cfd7da342df3c4908b1162effc5e2d (patch)
treed60cfb71ccefe8ce66e0f2097eb75651f930f27a
parent06847f35a19834ff26c60b691522107fa201a7a5 (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.html9
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 }}"