theme-blog-ewen/layouts/partials/nav.html
2020-12-10 16:13:38 +01:00

39 lines
1.1 KiB
HTML

<div class="container" id="navbar">
<nav class="nav-main">
<div class="nav-top nav-left">
<h1>
<a href="{{ "/" | absLangURL }}">
{{ .Site.Title }}
</a>
</h1>
</div>
<div class="nav-top nav-right">
<nav class="nav-item level is-mobile">
{{- $social := ( .Site.Params.social ) -}}
{{- range $platform := $social.config.platforms -}}
{{- with $userLink := ( index $social $platform ) -}}
<a class="level-item" aria-label="{{ $platform }}" target="_blank" rel="noopener" href="{{ $userLink }}">
<span class="icon {{ $platform }}">
<i>
{{- partial "svg/icons" $platform -}}
</i>
</span>
</a>
{{- end -}}
{{- end -}}
<a class="level-item" aria-label="rss" target="_blank" rel="noopener" href="{{ "/index.xml" | absLangURL }}">
<span class="icon rss">
<i>
{{- partial "svg/icons" "rss" -}}
</i>
</span>
</a>
{{- range $.Site.Home.AllTranslations }}
<a class="level-item" href="{{ .Permalink }}">{{ .Language.Lang }}</a>
{{- end }}
</nav>
</div>
</nav>
</div>