Özgür kon site forku
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.
 
 
ozgurkon-site/themes/devfest-theme-hugo/layouts/partials/header.html

24 lines
552 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.Params.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>