Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/curttimson/hugo-theme-massively.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCurtis Timson <curt@live.co.uk>2018-04-01 16:55:38 +0300
committerGitHub <noreply@github.com>2018-04-01 16:55:38 +0300
commit370d25a2e10c3602336f2b1056f35f263fb7e3a8 (patch)
tree33d90927e519bcae1a14b345675e1c38eb74e4ef
parentd17e766208dfb3ad53f1558a72c84ac2b439ab96 (diff)
parent99acdb1837ef17b537a988de1718c4619985afe5 (diff)
Merge pull request #13 from pmviva/fix-title-in-head-tag
Fix title in head tag
-rw-r--r--layouts/partials/htmlhead.html5
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 }} &middot; {{ end }} {{ .Site.Title }}</title>
- <title>{{ .Title }}</title>
+ <title>{{ if eq (.Site.Title) (.Title) }}{{ .Site.Title }}{{ else }}{{ .Title }} &middot; {{ .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>