juju.re/jujure/themes/hello_friend/layouts/partials/menu.html
Julien CLEMENT 9c991511b4 embedded hello friend because i'm lazy
Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
2023-05-01 07:48:08 +02:00

24 lines
815 B
HTML

<nav class="menu">
<ul class="menu__inner">
{{- $currentPage := . -}}
{{ range .Site.Menus.main -}}
<li><a href="{{ .URL | relLangURL }}">{{ .Name }}</a></li>
{{- end }}
{{- if .Site.Params.EnableGlobalLanguageMenu }}
<div class="submenu">
<li class="dropdown">
<a href="javascript:void(0)" class="dropbtn">{{ .Language }}</a>
<div class="dropdown-content">
{{ if .Site.IsMultiLingual }}
{{ range $.Translations }}
<a title="{{ .Language }}" href="{{ .Permalink }}">{{ .Language }}</a>
{{ end }}
{{ end }}
</div>
</li>
</div>
{{- end }}
</ul>
</nav>