Skip to content

giscus not working without dark mode #12700

@gordonwoodhull

Description

@gordonwoodhull

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.

Metadata

Metadata

Labels

backportbugSomething isn't workingthemesRelated to HTML theming or any other style related issue (like highlight-style)

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions