aboutsummaryrefslogtreecommitdiff
path: root/themes/terrassa/layouts/partials/menu.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/terrassa/layouts/partials/menu.html')
-rw-r--r--themes/terrassa/layouts/partials/menu.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/themes/terrassa/layouts/partials/menu.html b/themes/terrassa/layouts/partials/menu.html
new file mode 100644
index 0000000..abfb92b
--- /dev/null
+++ b/themes/terrassa/layouts/partials/menu.html
@@ -0,0 +1,13 @@
+<nav class="menu" aria-label="menu">
+ <ul class="menu__items" aria-label="menu">
+ {{ $current := . }}
+ {{ range .Site.Menus.main }}
+ <li class="menu__items__item" aria-label="{{ .Name }}">
+ <a href="{{ .URL }}" class="menu__items__item__link {{ if $current.IsMenuCurrent "main" . }}active{{ end }}"
+ alt="{{ .Name }}" role="menuitem">
+ {{ .Name }}
+ </a>
+ </li>
+ {{ end }}
+ </ul>
+</nav> \ No newline at end of file