Update header
This commit is contained in:
parent
b1e32b2c9f
commit
aa8a58141d
4 changed files with 17 additions and 6 deletions
|
|
@ -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" .) }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue