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

github.com/brycematheson/allegiant.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeichi Takahashi <keichi.t@me.com>2015-02-03 16:42:27 +0300
committerKeichi Takahashi <keichi.t@me.com>2015-02-03 16:42:27 +0300
commitda67c4e25adeacc42c2bac321fcd3abfcbdc2566 (patch)
treea1c98a24f0800b365b73c36bbc5ee945d3d06c8d
parentbe308b5371d94881852f00be865aa982ba72b0a2 (diff)
Do not show page title at the homepage
-rw-r--r--layouts/partials/header.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 5ebe186..8c04f76 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -6,7 +6,13 @@
<meta property="og:title" content="{{ .Title }} | {{ .Site.Title }}" />
<meta property="og:url" content="{{ .Permalink }}" />
- <title>{{ .Title }} | {{ .Site.Title }}</title>
+ <title>
+ {{ if eq .Url "/" }}
+ {{ .Site.Title }}
+ {{ else }}
+ {{ .Title }} &middot; {{ .Site.Title }}
+ {{ end }}
+ </title>
<link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/bootstrap.min.css" />
<link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/main.css" />