Fix error in title (before it was thought that the title of the website was the first element in the menu)

This commit is contained in:
Benjamin Bach 2023-01-23 13:08:59 +01:00
parent 569b958132
commit 25ddc7a26b
Signed by untrusted user: benjaoming
GPG key ID: 7D49441634585664

View file

@ -20,16 +20,6 @@
{{ $style := resources.Get "static/css/style.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint "sha512" }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}">
{{ if .IsHome }}
{{ $homepage := "Home" }}
{{ with .Site.Menus.nav }}
{{ range first 1 . }}
{{ $homepage = .Name }}
{{ end }}
{{ end }}
<title>{{ $homepage }} | {{ .Site.Title }}</title>
{{ else }}
<title>{{ .Title }} | {{ .Site.Title }}</title>
{{ end }}
</head>