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:
author7ma7X <hellorusk1998@gmail.com>2020-06-02 05:23:21 +0300
committer7ma7X <hellorusk1998@gmail.com>2020-06-02 05:23:21 +0300
commit5c1ee356eb1fc573bfc725e3f474efe61df42294 (patch)
treec1ec93c348b552bea267e54d79f84c121bdb3bc8
parent9bc820be853b03690ad4a788c1e657ba78100d2e (diff)
fix title
-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 }}