From bc0dbcece01f2548446dcb8217a6ee936cc40244 Mon Sep 17 00:00:00 2001 From: ESP-Kirill <105578077+f-hollow@users.noreply.github.com> Date: Mon, 16 Dec 2024 22:13:12 +0800 Subject: [PATCH] Fix/repair dropdown menu button (#362) * fix: repair burger menu button for mobiles * fix: repair fetching zoom.min.js --- layouts/partials/head.html | 5 ++++- layouts/partials/header/basic.html | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 8a0d76e8..a549910c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -68,6 +68,8 @@ {{ $jsRTL := resources.Get "js/rtl.js" }} {{ $assets.Add "js" (slice $jsRTL) }} {{ end }} + {{ $jsMobileMenu := resources.Get "js/mobilemenu.js" }} + {{ $assets.Add "js" (slice $jsMobileMenu) }} {{ if $assets.Get "js" }} {{ $bundleJS := $assets.Get "js" | resources.Concat "js/main.bundle.js" | resources.Minify | resources.Fingerprint "sha512" }} @@ -76,7 +78,8 @@ }}"> {{ end }} {{ if not .Site.Params.disableImageZoom | default true }} - + {{ $zoomJS := resources.Get "lib/zoom/zoom.min.js" | resources.Fingerprint "sha512" }} + {{ end }} {{/* Icons */}} {{ if templates.Exists "partials/favicons.html" }} diff --git a/layouts/partials/header/basic.html b/layouts/partials/header/basic.html index b1b5052a..5e9aa503 100644 --- a/layouts/partials/header/basic.html +++ b/layouts/partials/header/basic.html @@ -91,8 +91,7 @@
-