Only show menu by default on wide devices
This commit is contained in:
parent
6bee3034cc
commit
cfef81da36
2
build.sh
2
build.sh
@ -5,6 +5,8 @@ set -euxo pipefail
|
|||||||
rm -rf themes/book/
|
rm -rf themes/book/
|
||||||
git clone https://github.com/getzola/book.git 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/
|
rm -rf public/
|
||||||
zola build
|
zola build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user