diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c7295a1..2ae8774 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,7 @@ "features": { "ghcr.io/devcontainers/features/hugo:1": { "extended": true, - "version": "0.145.0" + "version": "0.147.7" }, "ghcr.io/devcontainers/features/node:1": {} }, @@ -18,5 +18,7 @@ } }, "postCreateCommand": "npm install", - "forwardPorts": [1313] -} + "forwardPorts": [ + 1313 + ] +} \ No newline at end of file diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 02d1df7..5f90deb 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -31,7 +31,7 @@ jobs: build: runs-on: ubuntu-latest env: - HUGO_VERSION: 0.147.5 + HUGO_VERSION: 0.147.7 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/assets/js/nav-menu.js b/assets/js/nav-menu.js index 132653d..3b38c31 100644 --- a/assets/js/nav-menu.js +++ b/assets/js/nav-menu.js @@ -1,4 +1,5 @@ (function () { + const hiddenClass = "hx:hidden"; const dropdownToggles = document.querySelectorAll(".hextra-nav-menu-toggle"); dropdownToggles.forEach((toggle) => { @@ -11,7 +12,7 @@ if (otherToggle !== toggle) { otherToggle.dataset.state = "closed"; const otherMenuItems = otherToggle.nextElementSibling; - otherMenuItems.classList.add("hx:hidden"); + otherMenuItems.classList.add(hiddenClass); } }); @@ -29,10 +30,10 @@ menuItemsElement.style.zIndex = "1000"; // Show dropdown - menuItemsElement.classList.remove("hx:hidden"); + menuItemsElement.classList.remove(hiddenClass); } else { // Hide dropdown - menuItemsElement.classList.add("hx:hidden"); + menuItemsElement.classList.add(hiddenClass); } }); }); @@ -43,7 +44,7 @@ dropdownToggles.forEach((toggle) => { toggle.dataset.state = "closed"; const menuItemsElement = toggle.nextElementSibling; - menuItemsElement.classList.add("hx:hidden"); + menuItemsElement.classList.add(hiddenClass); }); } }); @@ -54,7 +55,7 @@ dropdownToggles.forEach((toggle) => { toggle.dataset.state = "closed"; const menuItemsElement = toggle.nextElementSibling; - menuItemsElement.classList.add("hx:hidden"); + menuItemsElement.classList.add(hiddenClass); }); } }); diff --git a/netlify.toml b/netlify.toml index d96ec7b..0065fc3 100644 --- a/netlify.toml +++ b/netlify.toml @@ -7,6 +7,6 @@ command = "cd exampleSite && hugo --gc --minify --themesDir ../.. -b ${DEPLOY_PR ignore = "false" [build.environment] -HUGO_VERSION = "0.147.5" +HUGO_VERSION = "0.147.7" GO_VERSION = "1.24.3" NODE_VERSION = "22.16.0"