Skip to content

Commit

Permalink
feat: trim the whitespace from the HTML meta tags (#367)
Browse files Browse the repository at this point in the history
Co-authored-by: cedricbonhomme <cedricbonhomme@users.noreply.github.com>
Co-authored-by: Alexander Bilz <mail@alexbilz.com>
  • Loading branch information
3 people committed Jun 13, 2022
1 parent 06847f3 commit 6747495
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
{{ . }} |

{{ end }}
{{ .Site.Params.author }}
{{- .Site.Params.author -}}


{{ else }}
{{ .Site.Params.author }}{{ with .Title }}
{{- .Site.Params.author -}}{{ with .Title }}
|
{{ . }}

Expand All @@ -18,6 +18,7 @@


{{ end }}

</title>

<!-- Meta -->
Expand All @@ -28,11 +29,11 @@
<meta
name="description"
content="{{ if .Params.description }}
{{ .Params.description }}
{{- .Params.description -}}
{{ else }}
{{ .Site.Params.description }}
{{- .Site.Params.description -}}
{{ end }}"
Expand Down

0 comments on commit 6747495

Please sign in to comment.