Add the mobile menu directly in baseof template instead of via js. Translate menu terms.
This commit is contained in:
parent
562fbf3ede
commit
8dfb9c8763
1 changed files with 72 additions and 49 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{{ $currentSection := .Section }}
|
||||
{{ $currentID := .UniqueID }}
|
||||
<nav class="main-menu layout__navigation layout__full" role="navigation">
|
||||
<h2 class="visually-hidden">Main menu</h2>
|
||||
<h2 class="visually-hidden">{{ i18n "menu_title" }}</h2>
|
||||
<ul class="navbar">
|
||||
<li><a class="{{ if .IsHome }}active{{ end }}" href="/">{{ i18n "menu_home" }}</a></li>
|
||||
{{ range after 1 (where .Site.Pages "Section" "") -}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue