summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index dc22bdc..f88f2d9 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -7,10 +7,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{{ $title := .Title }}
- {{ if gt (len $title) 0 }}
- {{ $title = print $title " | " .Site.Title }}
- {{ else }}
- {{ $title = .Site.Title }}
+ {{ if not .IsHome }}
+ {{ $title = printf "%s | %s" .Title .Site.Title }}
{{ end }}
<title>{{ $title }}</title>