website/layouts/_partials/header.html
2026-03-15 12:12:13 +01:00

6 lines
322 B
HTML

{{- $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" .) }}