refactor(head): remove empty lines

This commit is contained in:
Jimmy Cai 2020-09-11 21:57:33 +02:00
parent 5f7e818b92
commit 3aabc8e61c
No known key found for this signature in database
GPG key ID: 3EA408E527F37B18

View file

@ -6,14 +6,13 @@
<title>{{ (trim (partial "data/title" .) "\n" ) | safeHTML }}</title> <title>{{ (trim (partial "data/title" .) "\n" ) | safeHTML }}</title>
<link rel='canonical' href='{{ .Permalink }}'> <link rel='canonical' href='{{ .Permalink }}'>
{{ partial "head/style.html" . }} {{- partial "head/style.html" . -}}
{{ partial "head/script.html" . }} {{- partial "head/script.html" . -}}
{{- partial "head/opengraph/include.html" . -}}
{{ partial "head/opengraph/include.html" . }} {{- range .AlternativeOutputFormats -}}
{{ range .AlternativeOutputFormats -}}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}"> <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
{{ end -}} {{- end -}}
{{- if .Site.Params.favicon -}} {{- if .Site.Params.favicon -}}
{{- $logo := resources.Get .Site.Params.favicon -}} {{- $logo := resources.Get .Site.Params.favicon -}}
@ -21,5 +20,5 @@
<link rel="icon" type="image/png" href="{{ $favicon.RelPermalink }}" /> <link rel="icon" type="image/png" href="{{ $favicon.RelPermalink }}" />
{{- end -}} {{- end -}}
{{ partial "head/custom.html" . }} {{- partial "head/custom.html" . -}}
</head> </head>