Updated to match new look

only too 9 months lol
Signed-off-by: Sophia Atkinson <sophialul@protonmail.com>
This commit is contained in:
2023-08-15 23:39:54 -07:00
parent e4bc844b67
commit 1edf6d912b
104 changed files with 1173 additions and 7411 deletions

View File

@@ -2,11 +2,8 @@
{{- if and (isset .Site.Params.utterances "repo") (not (eq .Site.Params.utterances.repo "" )) (eq (.Params.disableComments | default false) false) -}}
<div class="comments">
<script>
let getTheme = window.localStorage && window.localStorage.getItem("colorscheme");
getTheme = getTheme == null ? '{{$.Site.Params.utterances.theme}}' : getTheme;
let theme = getTheme === 'dark' ? 'github-dark' : 'github-light';
let s = document.createElement('script');
s.src = 'https://utteranc.es/client.js';
@@ -17,8 +14,7 @@
s.setAttribute('async', '');
document.querySelector('div.comments').innerHTML = '';
document.querySelector('div.comments').appendChild(s);
</script>
</div>
{{- end -}}
{{- end -}}
{{- end -}}