diff options
author | 7ma7X <hellorusk1998@gmail.com> | 2020-06-02 05:23:21 +0300 |
---|---|---|
committer | 7ma7X <hellorusk1998@gmail.com> | 2020-06-02 05:23:21 +0300 |
commit | 5c1ee356eb1fc573bfc725e3f474efe61df42294 (patch) | |
tree | c1ec93c348b552bea267e54d79f84c121bdb3bc8 | |
parent | 9bc820be853b03690ad4a788c1e657ba78100d2e (diff) |
fix title
-rw-r--r-- | layouts/partials/head.html | 6 |
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 }} |