mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Change fetch icons url
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ function loadTheme() {
|
|||||||
root.style.setProperty('--text', theme === 'light' ? 'black' : 'white');
|
root.style.setProperty('--text', theme === 'light' ? 'black' : 'white');
|
||||||
root.style.setProperty('--color', 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((response) => response.text())
|
||||||
.then((svg) => {
|
.then((svg) => {
|
||||||
themeTogglers.forEach(themeToggler => {
|
themeTogglers.forEach(themeToggler => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
function loadBurger() {
|
function loadBurger() {
|
||||||
fetch(`./../icons/${burgerOpen ? 'close' : 'burger'}.svg`)
|
fetch(`/icons/${burgerOpen ? 'close' : 'burger'}.svg`)
|
||||||
.then((response) => response.text())
|
.then((response) => response.text())
|
||||||
.then((svg) => {
|
.then((svg) => {
|
||||||
burgerPlaceholder.innerHTML = svg;
|
burgerPlaceholder.innerHTML = svg;
|
||||||
|
|||||||
@@ -2,10 +2,6 @@ baseURL = 'http://hazemkrimi.tech/'
|
|||||||
languageCode = 'en-us'
|
languageCode = 'en-us'
|
||||||
title = 'Hazem Krimi'
|
title = 'Hazem Krimi'
|
||||||
[module]
|
[module]
|
||||||
[[module.mounts]]
|
|
||||||
includeFiles = '*/**'
|
|
||||||
source = 'assets'
|
|
||||||
target = 'assets'
|
|
||||||
[menu]
|
[menu]
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = 'Home'
|
name = 'Home'
|
||||||
|
|||||||
Reference in New Issue
Block a user