diff options
author | Curtis Timson <curt@live.co.uk> | 2018-04-01 16:55:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-01 16:55:38 +0300 |
commit | 370d25a2e10c3602336f2b1056f35f263fb7e3a8 (patch) | |
tree | 33d90927e519bcae1a14b345675e1c38eb74e4ef | |
parent | d17e766208dfb3ad53f1558a72c84ac2b439ab96 (diff) | |
parent | 99acdb1837ef17b537a988de1718c4619985afe5 (diff) |
Merge pull request #13 from pmviva/fix-title-in-head-tag
Fix title in head tag
-rw-r--r-- | layouts/partials/htmlhead.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/partials/htmlhead.html b/layouts/partials/htmlhead.html index b8757f9..dddd5a2 100644 --- a/layouts/partials/htmlhead.html +++ b/layouts/partials/htmlhead.html @@ -6,10 +6,9 @@ --> <html> <head> - <title>{{ if not .IsHome }} {{ .Title }} · {{ end }} {{ .Site.Title }}</title> - <title>{{ .Title }}</title> + <title>{{ if eq (.Site.Title) (.Title) }}{{ .Site.Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }}</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> <link rel="stylesheet" href="{{ .Site.BaseURL }}assets/css/main.css" /> <noscript><link rel="stylesheet" href="{{ .Site.BaseURL }}assets/css/noscript.css" /></noscript> - </head>
\ No newline at end of file + </head> |