mirror of
https://github.com/jbowdre/virtuallypotato.git
synced 2024-11-23 15:32:19 +00:00
37 lines
1.3 KiB
HTML
37 lines
1.3 KiB
HTML
|
{{- $params := .Site.Params }}
|
||
|
{{- $centerLogo := $params.centerLogo }}
|
||
|
{{ $logo := $params.logo }}
|
||
|
<header class="nav_header" >
|
||
|
<nav class="nav">
|
||
|
{{- if $centerLogo }}
|
||
|
{{- partialCached "logo" (dict "logo" $logo "class" "nav_hide") }}
|
||
|
{{- else }}
|
||
|
{{- partialCached "logo" (dict "logo" $logo) }}
|
||
|
{{- end }}
|
||
|
<div class='nav_body nav_body_{{ default "left" $params.mobileNavigation }}'>
|
||
|
{{ $context := . }}
|
||
|
{{ $menuData := .Site.Data.menu }}
|
||
|
{{ with $menuData }}
|
||
|
{{ partial "nav" (dict "context" $context "menu" $menuData) }}
|
||
|
{{- else }}
|
||
|
{{ partial "nav" (dict "context" . "menu" .Site.Menus.main) }}
|
||
|
{{- end }}
|
||
|
{{ if .Site.IsMultiLingual }}
|
||
|
<div class="nav_parent">
|
||
|
<a href="#" class="nav_item">{{ $params.languageMenuName }}</a>
|
||
|
<div class="nav_sub">
|
||
|
<span class="nav_child"></span>
|
||
|
{{ range .Site.Home.AllTranslations }}
|
||
|
<a href="{{ .Permalink }}" class="nav_child nav_item">{{ .Language.LanguageName }}</a>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
</div>
|
||
|
{{- end }}
|
||
|
{{- if $centerLogo }}
|
||
|
{{- partial "logo" (dict "logo" $logo "class" "nav_center") }}
|
||
|
{{- end }}
|
||
|
{{- partialCached "follow" . }}
|
||
|
</div>
|
||
|
</nav>
|
||
|
</header>
|