Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/danielkvist/hugo-piercer-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielkvist <d94.zaragoza@gmail.com>2019-03-27 16:16:44 +0300
committerdanielkvist <d94.zaragoza@gmail.com>2019-03-27 16:16:44 +0300
commitd40f470190bf183501d4de662d2f29e37f7cf653 (patch)
tree8df1426981b3a55dadeb2103ad82470c46847532 /layouts
parent710400c540a74c2152f799409222f093d44ab8e0 (diff)
add hamburger menu and change buttons color
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/header.html3
-rw-r--r--layouts/partials/menu.html14
2 files changed, 15 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index accf151..3d7e7d4 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -13,7 +13,6 @@
</div>
<!-- Menu -->
- <div class="header__menu">
- </div>
+ {{ partial "menu.html" . }}
</header> \ No newline at end of file
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
new file mode 100644
index 0000000..9200c43
--- /dev/null
+++ b/layouts/partials/menu.html
@@ -0,0 +1,14 @@
+<nav class="menu">
+ <details class="menu__toggle">
+ <summary class="menu__toggle__title">Menu</summary>
+
+ <div class="menu__items">
+ {{ range $.Site.Menus.main }}
+ <a href="{{ .URL }}" class="menu__items__item" alt="{{ .Name }}">
+ {{ .Name }}
+ </a>
+ {{ end }}
+ </div>
+
+ </details>
+</nav> \ No newline at end of file