Fix error in title (before it was thought that the title of the website was the first element in the menu)
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
569b958132
commit
25ddc7a26b
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue