Change fetch icons url

This commit is contained in:
Hazem Krimi
2023-11-03 23:50:01 +01:00
parent 113620e4da
commit c906b26105
3 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -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 => {
+1 -1
View File
@@ -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;
-4
View File
@@ -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'