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

github.com/wlh320/hugo-theme-hulga.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.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index be8e90f..c1b9d50 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -8,8 +8,8 @@
<meta name="theme-color" content="{{.Site.Params.primaryColor}}">
{{- end -}}
{{- if .IsHome -}}
- <title>{{ .Site.Title }} | {{ .Site.Params.subtitle }}</title>
- <meta property="og:title" content="{{ .Site.Title }} | {{ .Site.Params.subtitle }}">
+ <title>{{ .Site.Title }} {{- if .Site.Params.subtitle }} | {{ .Site.Params.subtitle }} {{- end -}}</title>
+ <meta property="og:title" content="{{ .Site.Title }} {{- if .Site.Params.subtitle }} | {{ .Site.Params.subtitle }} {{- end -}}">
<meta property="og:type" content="website">
{{ if .Site.Params.keywords }}
<meta name="keywords" content="{{.Site.Params.keywords}}">