Melora Hugues
6071e6fe19
Add social icons and a translated title to the home page Add translated links to the site menu
23 lines
834 B
HTML
23 lines
834 B
HTML
<nav class="menu">
|
|
<ul class="menu__inner">
|
|
{{- $currentPage := . -}}
|
|
{{ range .Site.Menus.main -}}
|
|
<li><a href="{{ .URL | relLangURL }}">{{ or (T .Identifier) .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>
|