Update header

This commit is contained in:
Jan Kremer 2026-03-15 12:12:13 +01:00
parent b1e32b2c9f
commit aa8a58141d
No known key found for this signature in database
4 changed files with 17 additions and 6 deletions

View file

@ -1,2 +1,6 @@
<a href="/" class="title">{{ partial "logo.svg" . }}{{ site.Title }}</a>
{{- $attrs := dict "class" "title" }}
{{- if .IsHome }}
{{- $attrs = merge $attrs (dict "class" "title active" "aria-current" "page") }}
{{- end }}
<a href="/" {{ range $k, $v :=$attrs }}{{ $k }}="{{ $v }}" {{ end }}>{{ partial "logo.svg" . }}{{ site.Title }}</a>
{{ partial "menu.html" (dict "menuID" "main" "page" .) }}