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

github.com/funkydan2/hugo-kiera.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Saunders <daniel.saunders@gmail.com>2020-12-11 03:48:10 +0300
committerDaniel Saunders <daniel.saunders@gmail.com>2020-12-11 03:48:10 +0300
commit8624c1d7ccb642d776dfd50e407650455fe5e72a (patch)
treee71c26666ce2490867de8c22886d223b284521b0
parent74a55365f6415cf9083c8df6d43a0c16e30971ce (diff)
Don't duplicate title on homepage.
-rw-r--r--layouts/partials/header.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index e6cb46c..8ebb21d 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -3,7 +3,7 @@
<html lang="{{ .Site.LanguageCode | default "en" }}">
<head>
- <title>{{ if .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
+ <title>{{ if and (not .IsHome) (.Title) }}{{ .Params.Title }} - {{ end }}{{ .Site.Title }}</title>
{{ partial "meta" . }}
{{ partialCached "header_includes" . -}}
</head>