diff options
author | Hylke Visser <git@htdvisser.nl> | 2019-03-30 15:19:17 +0300 |
---|---|---|
committer | Hylke Visser <git@htdvisser.nl> | 2019-03-30 15:19:17 +0300 |
commit | 08da946564604b132fde4b5227a6dfcf32aba940 (patch) | |
tree | b7da4b9ca6c7ff1d4a3b48268504e53a7108e5b2 | |
parent | 62034ea880be1f307e21af0c4f1b43fd5cfedc54 (diff) |
Fix rendering of page title
-rw-r--r-- | layouts/partials/header.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 715808c..dcda671 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -14,7 +14,7 @@ <link rel="stylesheet" href="{{ "css/style.css" | relURL }}" type="text/css"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700" type="text/css"> <link rel="alternate" href="{{ "index.xml" | relURL }}" type="application/rss+xml" title="{{ .Site.Title }}"> -<title>{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}</title> +<title>{{ with .Title }}{{.}} - {{ end }}{{ .Site.Title }}</title> </head> <body> |