summaryrefslogtreecommitdiff
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
authornanxiaobei <nanxiaobei@gmail.com>2020-03-10 01:50:02 +0800
committernanxiaobei <nanxiaobei@gmail.com>2020-03-10 01:50:02 +0800
commitbcfd902a30d49d30723424ba40b7dd2096f5c8b3 (patch)
treeeb94be92f8a906976f9fc6e7b5042d85cdc54f32 /layouts/partials/header.html
parent33ba819d7e0d11137ccff7fac0acdfdd231d31d7 (diff)
simplify code
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html9
1 files changed, 1 insertions, 8 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index b2a821b..5766565 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -5,14 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Title -->
- <title>
- {{- if not .IsHome }}
- {{- if eq .Kind "page" }}{{ .Title }}{{ else if .Data.Term }}{{ .Data.Term }}{{ else }}Tags{{ end }}
- {{- print " - " }}
- {{- end }}
-
- {{- .Site.Title -}}
- </title>
+ <title>{{ if .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
<!-- Meta -->
{{- if eq .Kind "page" }}
<meta name="description" content="{{ .Summary }}">