From cfef81da36ad292ed152fff6b53313f551c6f9ef Mon Sep 17 00:00:00 2001 From: Stavros Korokithakis Date: Thu, 4 Feb 2021 00:46:53 +0200 Subject: [PATCH] Only show menu by default on wide devices --- build.sh | 2 ++ 1 file changed, 2 insertions(+) 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