theme-blog-ewen/layouts/partials/nav.html

32 lines
867 B
HTML
Raw Normal View History

2020-04-12 08:16:04 +00:00
<div class="container" id="navbar">
<nav class="nav-main">
<div class="nav-top nav-left">
<h1>
2020-11-16 09:01:54 +00:00
<a href="{{ "/" | absLangURL }}">
{{ .Site.Title }}
2020-04-12 08:16:04 +00:00
</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 -}}
{{- range $.Site.Home.AllTranslations }}
<a class="level-item" href="{{ .Permalink }}">{{ .Language.Lang }}</a>
{{- end }}
</nav>
</div>
</nav>
</div>