You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
558 B

<header>
<div class="logo">
<a href="/">
<img src="{{ .Site.Params.logos.header }}" alt="logo {{ .Site.Title }}">
</a>
</div>
<input type="checkbox" id="menu-burger" class="visually-hidden"/>
<label for="menu-burger"></label>
<nav>
{{ $url := .URL }}
{{ range .Site.Data.toolbar.menus }}
{{ if (hasPrefix .url "http") }}
<a class="external" href="{{ .url }}" target="_blank" >{{ .name }}</a>
{{ else }}
<a class="{{ if (eq .url $url) }}active{{ end }}" href="{{ .url }}">{{ .name }}</a>
{{ end }}
{{ end }}
</nav>
</header>