diff options
author | Alan Pearce | 2014-07-12 20:58:10 +0100 |
---|---|---|
committer | Alan Pearce | 2014-07-12 20:58:10 +0100 |
commit | 2c8a5016b0310da24689eae27d404d6c13727161 (patch) | |
tree | 8142b26577634a69c3f0f7958b51bb3721804b35 /layouts/partials | |
parent | 26aaf8603f69889ed24408cf82aaf8499b56e91b (diff) | |
download | hyde-2c8a5016b0310da24689eae27d404d6c13727161.tar.lz hyde-2c8a5016b0310da24689eae27d404d6c13727161.tar.zst hyde-2c8a5016b0310da24689eae27d404d6c13727161.zip |
Hide title if it's the same as the site title
Diffstat (limited to 'layouts/partials')
-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 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"> |