forked from oyd/ozgurkon-2021-site
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.
19 lines
452 B
19 lines
452 B
<header>
|
|
<div class="logo">
|
|
<a href="/">
|
|
<img src="{{ .Site.Params.logos.header }}" alt="logo {{ .Site.Title }}">
|
|
</a>
|
|
</div>
|
|
|
|
<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> |