about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJakub Kucharski2016-07-03 18:47:14 +0200
committerdigitalcraftsman2016-08-19 19:17:17 +0200
commit61243733ec7ce5f2f8fe938f6e6518f05f2e5dfa (patch)
treefd22bf8db8ec59786caee87b3dae0b570100f424
parentfff9d5b21f50bbe11e9b9329867d6f70669de81f (diff)
downloadhyde-61243733ec7ce5f2f8fe938f6e6518f05f2e5dfa.tar.lz
hyde-61243733ec7ce5f2f8fe938f6e6518f05f2e5dfa.tar.zst
hyde-61243733ec7ce5f2f8fe938f6e6518f05f2e5dfa.zip
Don't repeat title in <title> tag on the home page
-rw-r--r--layouts/partials/head.html6
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 }} &middot; {{ .Site.Title }} </title>
+  {{ if .IsHome }}
+  <title>{{ .Site.Title }}</title>
+  {{ else }}
+  <title>{{ .Title }} &middot; {{ .Site.Title }}</title>
+  {{ end }}
 
   <!-- CSS -->
   <link rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css">