Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/geschke/hugo-tikva.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Regez <nicolas.regez@swisscom.com>2019-04-08 22:10:33 +0300
committerNicolas Regez <nicolas.regez@swisscom.com>2019-04-08 22:10:33 +0300
commitee52a1b2ac0b3feaa0861921fcbda2dda49fe7a8 (patch)
treedbaa331957746cb7792e43d205dc17c41a6f2557
parente447d9c9a25d4915189e84a34df752c2c3656edd (diff)
Allow for empty page title in head partial
-rw-r--r--layouts/partials/head.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index dbeea43..56e85a0 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,6 +1,6 @@
<head>
<meta charset="utf-8" />
- <title>{{ .Page.Title }}{{ if .Site.Params.AppendSiteTitle }} | {{ .Site.Title }}{{ end }}</title>
+ <title>{{ if .Page.Title }}{{ .Page.Title }}{{ end }}{{ if and (.Page.Title) (.Site.Params.AppendSiteTitle) }} | {{ end }}{{ if .Site.Params.AppendSiteTitle }}{{ .Site.Title }}{{ end }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -295,4 +295,4 @@ body {
{{- partial "head_includes.html" . }}
{{- partial "javascript_header.html" . }}
-</head> \ No newline at end of file
+</head>