mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-06 00:33:39 +00:00
Use gruvbox-dark theme for utterances
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
var getTheme = window.localStorage && window.localStorage.getItem("theme");
|
var getTheme = window.localStorage && window.localStorage.getItem("theme");
|
||||||
getTheme = getTheme == null ? 'dark' : getTheme;
|
getTheme = getTheme == null ? 'dark' : getTheme;
|
||||||
|
|
||||||
let theme = getTheme === 'dark' ? 'github-dark' : 'github-light';
|
let theme = getTheme === 'dark' ? 'gruvbox-dark' : 'github-light';
|
||||||
let s = document.createElement('script');
|
let s = document.createElement('script');
|
||||||
s.src = 'https://utteranc.es/client.js';
|
s.src = 'https://utteranc.es/client.js';
|
||||||
s.setAttribute('repo', '{{ print $username "/" $repository }}');
|
s.setAttribute('repo', '{{ print $username "/" $repository }}');
|
||||||
|
Reference in New Issue
Block a user