about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-07-12 20:58:10 +0100
committerAlan Pearce2014-07-12 20:58:10 +0100
commit2c8a5016b0310da24689eae27d404d6c13727161 (patch)
tree8142b26577634a69c3f0f7958b51bb3721804b35
parent26aaf8603f69889ed24408cf82aaf8499b56e91b (diff)
downloadhyde-2c8a5016b0310da24689eae27d404d6c13727161.tar.lz
hyde-2c8a5016b0310da24689eae27d404d6c13727161.tar.zst
hyde-2c8a5016b0310da24689eae27d404d6c13727161.zip
Hide title if it's the same as the site title
-rw-r--r--layouts/partials/head.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index ff21072..2e3d3a4 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -2,7 +2,7 @@
 <html lang="en-GB">
 	<head>
 		<meta name="viewport" content="width=device-width,initial-scale=1">
-		<title>{{ .Title }} · {{ .Site.Title }}</title>
+		<title>{{ if ne .Title .Site.Title }}{{ .Title }} · {{ end }}{{ .Site.Title }}</title>
 		<link rel="stylesheet" href="/css/poole.css">
 		<link rel="stylesheet" href="/css/syntax.css">
 		<link rel="stylesheet" href="/css/hyde.css">