aboutsummaryrefslogtreecommitdiff
path: root/themes/terrassa/layouts/partials/hamburger-menu.html
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2019-03-16 17:43:05 +0100
committerDimitri Staessens <dimitri@ouroboros.rocks>2019-03-16 17:43:05 +0100
commit79acfcf1599496e67b20c39c00a100b07c383ab1 (patch)
tree0651646a631545b2ff56074f4c8f492d69dbb170 /themes/terrassa/layouts/partials/hamburger-menu.html
parent4b98568dbdc0dddf8255abbbb08565821b79f839 (diff)
downloadwebsite-79acfcf1599496e67b20c39c00a100b07c383ab1.tar.gz
website-79acfcf1599496e67b20c39c00a100b07c383ab1.zip
theme: Add terrassa theme
Diffstat (limited to 'themes/terrassa/layouts/partials/hamburger-menu.html')
-rw-r--r--themes/terrassa/layouts/partials/hamburger-menu.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/themes/terrassa/layouts/partials/hamburger-menu.html b/themes/terrassa/layouts/partials/hamburger-menu.html
new file mode 100644
index 0000000..40a9ad8
--- /dev/null
+++ b/themes/terrassa/layouts/partials/hamburger-menu.html
@@ -0,0 +1,18 @@
+<nav class="hamburger-menu" aria-label="mobile-menu">
+ <div class="toggle">
+ <input type="checkbox" class="hamburger__toggle" id="hamburgerToggle" name="hamburger toggle" aria-label="Hamburguer menu">
+ <label class="hamburger__toggle__icon" for="hamburgerToggle">
+ <i class="fas fa-bars"></i>
+ </label>
+
+ <ul class="hamburger__items" aria-label="mobile-menu">
+ {{ range .Site.Menus.main }}
+ <li class="hamburger__items__item" aria-label="{{ .Name }}">
+ <a href="{{ .URL }}" class="hamburger__items__item__link" alt="{{ .Name }}" role="menuitem">
+ {{ .Name }}
+ </a>
+ </li>
+ {{ end }}
+ </ul>
+ </div>
+</nav> \ No newline at end of file