add responsive menu

This commit is contained in:
Wonderfall
2022-07-25 06:08:07 +02:00
parent 5737f8613c
commit 723ac4f5c6
2 changed files with 66 additions and 0 deletions

View File

@ -89,6 +89,9 @@
</div>
</div>
{{- $currentPage := . }}
<input id="hamburger-input" type="checkbox"></input>
<label id="hamburger-menu" for="hamburger-input"></label>
<div class="overlay"></div>
<ul id="menu">
{{- range site.Menus.main }}
{{- $menu_item_url := (cond (strings.HasSuffix .URL "/") .URL (printf "%s/" .URL) ) | absLangURL }}