From 9493e3d4230e390eb3842852a2ff7a3c73a48782 Mon Sep 17 00:00:00 2001
From: xiao201261 <6511667+xiao201261@users.noreply.github.com>
Date: Sun, 26 Apr 2020 15:17:20 +0800
Subject: fix multi head error
---
layouts/_default/baseof.html | 2 -
layouts/partials/head.html | 140 +++++++++++++++++++++----------------------
2 files changed, 68 insertions(+), 74 deletions(-)
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 8088892..fe4fc67 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,8 +1,6 @@
-
-
{{- block "title" . -}}
{{ if .IsPage }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 88261db..0b7b4b2 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,77 +1,73 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ with .Site.Params.baiduVerification }}
- {{ end }}
- {{ with .Site.Params.googleVerification }}
- {{ end }}
- {{- if .Keywords -}}
- {{ $length := len .Keywords | add -1 -}}
-
- {{- else if .Site.Params.keywords -}}
- {{ $length := len .Site.Params.keywords | add -1 -}}
-
- {{- end }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ with .Site.Params.baiduVerification }}
+ {{ end }}
+ {{ with .Site.Params.googleVerification }}
+ {{ end }}
+ {{- if .Keywords -}}
+ {{ $length := len .Keywords | add -1 -}}
+
+ {{- else if .Site.Params.keywords -}}
+ {{ $length := len .Site.Params.keywords | add -1 -}}
+
+ {{- end }}
- {{- if .Description -}}
-
- {{- else if .IsPage -}}
-
- {{- else if .Site.Params.description -}}
-
- {{- end -}}
-
-
-
-
-
-
- {{- block "title" . -}}
- {{ if .IsPage }}{{ .Title }} - {{ .Site.Title }}{{ else }}{{ .Site.Title }}{{ end }}
+ {{- if .Description -}}
+
+ {{- else if .IsPage -}}
+
+ {{- else if .Site.Params.description -}}
+
{{- end -}}
-
-
- {{ range .AlternativeOutputFormats -}}
- {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
- {{ end -}}
- {{ $css := resources.Get "css/style.css" | minify | fingerprint}}
-
- {{ with .Site.Params.customCSS }}
- {{ end }}
-
- {{- if eq .Site.Params.comment.type "gitalk"}}
-
- {{- end }}
-
- {{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/spf13/hugo/blob/master/tpl/tplimpl/template_embedded.go#L158 */}}
- {{- template "_internal/opengraph.html" . -}}
- {{- template "_internal/google_news.html" . -}}
- {{- template "_internal/schema.html" . -}}
- {{- template "_internal/twitter_cards.html" . -}}
-
- {{ `` | safeHTML }}
- {{ `` | safeHTML }}
+
+
+
+ {{- block "title" . -}}
+ {{ if .IsPage }}{{ .Title }} - {{ .Site.Title }}{{ else }}{{ .Site.Title }}{{ end }}
+ {{- end -}}
+
+
+ {{ range .AlternativeOutputFormats -}}
+ {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end -}}
+ {{ $css := resources.Get "css/style.css" | minify | fingerprint}}
+
+ {{ with .Site.Params.customCSS }}
+ {{ end }}
+
+ {{- if eq .Site.Params.comment.type "gitalk"}}
+
+ {{- end }}
+
+ {{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/spf13/hugo/blob/master/tpl/tplimpl/template_embedded.go#L158 */}}
+ {{- template "_internal/opengraph.html" . -}}
+ {{- template "_internal/google_news.html" . -}}
+ {{- template "_internal/schema.html" . -}}
+ {{- template "_internal/twitter_cards.html" . -}}
+
+
+ {{ `` | safeHTML }}
-
\ No newline at end of file
+ {{ `` | safeHTML }}
\ No newline at end of file
--
cgit v1.2.3