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

github.com/7ma7X/HugoTeX.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index b67c244..d562495 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,5 +1,9 @@
<meta charset="utf-8" />
-<title>{{ .Title }}</title>
+{{ if .Title }}
+ <title>{{ .Title }} - {{ .Site.Title }}</title>
+{{ else }}
+ <title>{{ .Site.Title }}</title>
+{{ end }}
{{ with .Site.Params.description }}
<meta name="description" content="{{ . }}" />
{{ end }}