commit 5beb3eb5b4d761cfbe1c86fe36e34ce067288988
parent fa328018d73cd7935bf917c7a7d270d4ec124c74
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Thu, 28 Jun 2018 09:57:45 -0500
Home page title should just be site name.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
@@ -6,7 +6,11 @@
{{ partial "favicon.html" . }}
{{ partial "stylesheet.html" . }}
{{ partial "katex.html" . }}
+ {{ if .IsHome }}
+ <title>{{.Site.Title}}</title>
+ {{ else }}
<title>{{ partial "i18n_fallback" .Title}} | {{.Site.Title}}</title>
+ {{ end }}
</head>
<body>
{{ partial "navigation_bar.html" . }}