diff options
author | Jimmy Cai <jimmehcai@gmail.com> | 2020-09-11 22:57:33 +0300 |
---|---|---|
committer | Jimmy Cai <jimmehcai@gmail.com> | 2020-09-11 22:57:33 +0300 |
commit | 3aabc8e61c4c63aaa4fc8ee26d6a5d660f17f9a9 (patch) | |
tree | 41020193dabae44b94f93f1a307aa14fd0898afd | |
parent | 5f7e818b924f321afaf6effbfe07ba0ab27681c4 (diff) |
refactor(head): remove empty lines
-rw-r--r-- | layouts/partials/head.html | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index dd51174..d7af8de 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,19 +1,18 @@ <head> <meta charset='utf-8'> <meta name='viewport' content='width=device-width, initial-scale=1'> - <meta name='description' content='{{ chomp (partial "data/description" . | plainify ) }}'> + <meta name='description' content='{{ chomp (partial "data/description" . | plainify ) }}'> <title>{{ (trim (partial "data/title" .) "\n" ) | safeHTML }}</title> - <link rel='canonical' href='{{ .Permalink }}'> - - {{ partial "head/style.html" . }} - {{ partial "head/script.html" . }} + <link rel='canonical' href='{{ .Permalink }}'> - {{ partial "head/opengraph/include.html" . }} + {{- partial "head/style.html" . -}} + {{- partial "head/script.html" . -}} + {{- partial "head/opengraph/include.html" . -}} - {{ range .AlternativeOutputFormats -}} + {{- range .AlternativeOutputFormats -}} <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}"> - {{ end -}} + {{- end -}} {{- if .Site.Params.favicon -}} {{- $logo := resources.Get .Site.Params.favicon -}} @@ -21,5 +20,5 @@ <link rel="icon" type="image/png" href="{{ $favicon.RelPermalink }}" /> {{- end -}} - {{ partial "head/custom.html" . }} + {{- partial "head/custom.html" . -}} </head>
\ No newline at end of file |