Don't repeat title in <title> tag on the home page

This commit is contained in:
Jakub Kucharski 2016-07-03 18:47:14 +02:00 committed by digitalcraftsman
parent fff9d5b21f
commit 61243733ec
1 changed files with 5 additions and 1 deletions

View File

@ -8,7 +8,11 @@
<!-- Enable responsiveness on mobile devices--> <!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title> {{ .Title }} &middot; {{ .Site.Title }} </title> {{ if .IsHome }}
<title>{{ .Site.Title }}</title>
{{ else }}
<title>{{ .Title }} &middot; {{ .Site.Title }}</title>
{{ end }}
<!-- CSS --> <!-- CSS -->
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css"> <link rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css">