edited post

This commit is contained in:
Morgan 2023-10-29 11:59:13 +09:00
parent 0a08ee920c
commit 7203132b9b
1 changed files with 2 additions and 2 deletions

View File

@ -71,14 +71,14 @@
document.body.classList.remove('dark');
localStorage.setItem("pref-theme", 'light');
{{- if site.Params.label.icon_dark }}
document.body.getElementById('main-logo').src = "{{site.Params.label.icon}}";
document.getElementById('main-logo').src = "{{site.Params.label.icon}}";
{{- end }}
} else {
document.body.classList.add('dark');
localStorage.setItem("pref-theme", 'dark');
{{- if site.Params.label.icon_dark }}
document.body.getElementById('main-logo').src = "{{site.Params.label.icon_dark}}";
document.getElementById('main-logo').src = "{{site.Params.label.icon_dark}}";
{{- end }}
}