From ae2b0c9d966fef37ba36c80c44eaacf212fd9fb1 Mon Sep 17 00:00:00 2001 From: nanxiaobei Date: Mon, 9 Mar 2020 23:56:47 +0800 Subject: update html format --- layouts/partials/header.html | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'layouts/partials/header.html') diff --git a/layouts/partials/header.html b/layouts/partials/header.html index c21ac8c..b2a821b 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -7,20 +7,20 @@ {{- if not .IsHome }} - {{- if eq .Kind "page" }}{{ .Title }} - {{- else if eq .Data.Singular "tag" }}{{ .Data.Term }} - {{- else }}Posts - {{- end }} - {{ end }} + {{- if eq .Kind "page" }}{{ .Title }}{{ else if .Data.Term }}{{ .Data.Term }}{{ else }}Tags{{ end }} + {{- print " - " }} + {{- end }} + {{- .Site.Title -}} {{- if eq .Kind "page" }} - {{ else }} + {{- else }} - {{ end -}} + {{- end }} @@ -28,14 +28,14 @@ - {{ hugo.Generator }} + {{- hugo.Generator }} - {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} - {{ template "_internal/google_analytics_async.html" . }} - {{ template "_internal/opengraph.html" . }} - {{ end }} + {{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} + {{- template "_internal/google_analytics_async.html" . }} + {{- template "_internal/opengraph.html" . }} + {{- end }} - +
-- cgit v1.2.3