diff --git a/assets/js/baseof.js b/assets/js/baseof.js index 648965d..0351ac4 100644 --- a/assets/js/baseof.js +++ b/assets/js/baseof.js @@ -41,7 +41,7 @@ function loadTheme() { root.style.setProperty('--text', theme === 'light' ? 'black' : 'white'); root.style.setProperty('--color', theme === 'light' ? 'black' : 'white'); - fetch(`./../icons/${theme === 'light' ? 'sun' : 'moon'}.svg`) + fetch(`/icons/${theme === 'light' ? 'sun' : 'moon'}.svg`) .then((response) => response.text()) .then((svg) => { themeTogglers.forEach(themeToggler => { diff --git a/assets/js/partials/header.js b/assets/js/partials/header.js index c149f7e..24b80b9 100644 --- a/assets/js/partials/header.js +++ b/assets/js/partials/header.js @@ -1,5 +1,5 @@ function loadBurger() { - fetch(`./../icons/${burgerOpen ? 'close' : 'burger'}.svg`) + fetch(`/icons/${burgerOpen ? 'close' : 'burger'}.svg`) .then((response) => response.text()) .then((svg) => { burgerPlaceholder.innerHTML = svg; diff --git a/hugo.toml b/hugo.toml index 0b42f08..a94daf7 100644 --- a/hugo.toml +++ b/hugo.toml @@ -2,10 +2,6 @@ baseURL = 'http://hazemkrimi.tech/' languageCode = 'en-us' title = 'Hazem Krimi' [module] -[[module.mounts]] - includeFiles = '*/**' - source = 'assets' - target = 'assets' [menu] [[menu.main]] name = 'Home'