diff options
author | Jakub Kucharski <jakubkucharski97@gmail.com> | 2016-07-03 18:47:14 +0200 |
---|---|---|
committer | digitalcraftsman <digitalcraftsman@protonmail.com> | 2016-08-19 19:17:17 +0200 |
commit | 61243733ec7ce5f2f8fe938f6e6518f05f2e5dfa (patch) | |
tree | fd22bf8db8ec59786caee87b3dae0b570100f424 | |
parent | fff9d5b21f50bbe11e9b9329867d6f70669de81f (diff) |
Don't repeat title in <title> tag on the home page
-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 23767d6..07e383a 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -8,7 +8,11 @@ <!-- Enable responsiveness on mobile devices--> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> - <title> {{ .Title }} · {{ .Site.Title }} </title> + {{ if .IsHome }} + <title>{{ .Site.Title }}</title> + {{ else }} + <title>{{ .Title }} · {{ .Site.Title }}</title> + {{ end }} <!-- CSS --> <link rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css"> |