commit c9b0f7d7ed790f6de8fb8744b481732089f19b1e
parent d74ab6e7ab6da13ac36211089c77b42b4c747132
Author: corndog <cauchyn@firemail.cc>
Date: Thu, 25 Oct 2018 18:56:19 -0700
Don't put page name in title if it is the index
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/site.tmpl b/site.tmpl
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1">
- <title>{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Other.Title }}</title>
+ <title>{{ if not (.Is "index.html") }}{{ with .Title }}{{ . }} | {{ end }}{{ end }}{{ .Site.Other.Title }}</title>
<link rel="stylesheet" type="text/css" href="{{ .Rel "static/charter.css" }}">
<link rel="stylesheet" type="text/css" href="{{ .Rel "static/cooperhewitt.css" }}">
<link rel="stylesheet" type="text/css" href="{{ .Rel "static/style.css" }}">