I just found this, because in my quarto blog, deployed as gh-pages, giscus is not loading and I see in my javascript console the following:
Uncaught ReferenceError: authorPrefersDark is not defined
Any idea?
Originally posted by @feinmann in #12611 (comment)
giscus.ejs refers to a JavaScript variable which will only exist if dark mode is enabled for the page. This code needs to be conditionally included only for dark mode.
Originally posted by @feinmann in #12611 (comment)
giscus.ejsrefers to a JavaScript variable which will only exist if dark mode is enabled for the page. This code needs to be conditionally included only for dark mode.