diff --git a/build.sh b/build.sh index 400457a..ef9ee83 100755 --- a/build.sh +++ b/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