diff options
author | Mohammed Al Sahaf <msaa1990@gmail.com> | 2020-03-23 23:56:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-23 23:56:48 +0300 |
commit | 8bad7c8634e7545005e1b1144a19133b896489ff (patch) | |
tree | 61cb8eba89ca22da9bfeecdc17eeeabbe5ce93ea | |
parent | f5078a1802ad1bd7e7d0106583fbb0d6469b42ad (diff) |
Don't duplicate the site title on homepage
-rw-r--r-- | layouts/partials/head.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index fc98683..b517fd1 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -4,7 +4,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="format-detection" content="telephone=no"/> - <title>{{ if .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title> + <title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title> <!-- Icons --> <link rel="apple-touch-icon" sizes="180x180" href="{{ "apple-touch-icon.png" | relURL }}"> <link rel="icon" type="image/png" sizes="32x32" href="{{ "favicon-32x32.png" | relURL }}"> |