make titles consistent
Marco Andronaco andronacomarco@gmail.com
Wed, 11 Jan 2023 15:42:29 +0100
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
layouts/partials/header.html
→
layouts/partials/header.html
@@ -3,10 +3,10 @@ <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> {{- $title := ( .Title ) -}} {{- $siteTitle := ( .Site.Title ) -}} - {{- if .IsHome -}} - <title>{{ $siteTitle }} | Home </title> + {{- if or (.IsHome) (eq .Title "Home") -}} + <title>{{ $siteTitle }}</title> {{- else -}} - <title>{{ $title }} - {{ $siteTitle }}</title> + <title>{{ $siteTitle }} - {{ $title }}</title> {{- end -}} {{- if isset .Site.Params "favicon" -}}