Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(giscus): add missing attributes and allow local theme #1407

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ReenigneArcher
Copy link
Contributor

@ReenigneArcher ReenigneArcher commented Dec 20, 2024

This PR adds some missing giscus attributes. I assume these were not available when giscus was added originally.

Additionally, there is a logic change that allows a local css file for the giscus theme. I tried to test this locally and it requires CORS to be disabled, I am not sure how this would work on a GitHub hosted site, but in any event it allows to specify a theme like /assets/css/giscus.css or any local path that starts with /. Normally giscus will try to get any non full url theme from their own server/api.

https://giscus.app/

Here is a screenshot of evidence of the a custom theme css working for giscus.
image

@ReenigneArcher ReenigneArcher force-pushed the fix/giscus/add-missing-attributes branch from fdc8c2a to 92a2e6b Compare December 20, 2024 01:46
@ReenigneArcher ReenigneArcher changed the title fix(giscus): add missing attributes fix(giscus): add missing attributes and allow local theme Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant