From 67474957d7cfd7da342df3c4908b1162effc5e2d Mon Sep 17 00:00:00 2001
From: Cedric <cedric@cedricbonhomme.org>
Date: Mon, 13 Jun 2022 18:36:38 +0000
Subject: [PATCH] feat: trim the whitespace from the HTML meta tags (#367)
---
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 }}"
--
Gitblit v1.10.0