all repos — archie @ 7735246ec0c4b1b84405efa1fa96c4748cd0165c

A minimal Hugo Theme

make titles consistent
Marco Andronaco andronacomarco@gmail.com
Wed, 11 Jan 2023 15:42:29 +0100
commit

7735246ec0c4b1b84405efa1fa96c4748cd0165c

parent

d16eb6e176b6cc92b9499284eb5ca3236b30aa37

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M layouts/partials/header.htmllayouts/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" -}}