Only show menu by default on wide devices
This commit is contained in:
2
build.sh
2
build.sh
@@ -5,6 +5,8 @@ set -euxo pipefail
|
||||
rm -rf themes/book/
|
||||
git clone https://github.com/getzola/book.git themes/book/
|
||||
|
||||
sed -i '5i if (window.innerWidth < 900) { $menu.classList.toggle("menu-hidden"); $page.classList.toggle("page-without-menu"); }\n' themes/book/static/book.js
|
||||
|
||||
rm -rf public/
|
||||
zola build
|
||||
|
||||
|
Reference in New Issue
Block a user