Skip to content

Conversation

ldez
Copy link
Contributor

@ldez ldez commented Aug 24, 2025

  • Fixes the support of the system theme
  • Fixes theme switching
  • Fixes language
  • Fixes Giscuss inside the example page docs/advanced/comments/

Closes #358

Copy link

netlify bot commented Aug 24, 2025

Deploy Preview for hugo-hextra ready!

Name Link
🔨 Latest commit 2f587f4
🔍 Latest deploy log https://app.netlify.com/projects/hugo-hextra/deploys/68ab7ea2cf14760009308c12
😎 Deploy Preview https://deploy-preview-783--hugo-hextra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ldez ldez force-pushed the feat/giscuss-theme-lang branch from 1257862 to 74a5f85 Compare August 24, 2025 16:59
@ldez ldez force-pushed the feat/giscuss-theme-lang branch from 74a5f85 to c0f4a4f Compare August 24, 2025 17:01
@ldez ldez force-pushed the feat/giscuss-theme-lang branch from 20b9a55 to d4a94b0 Compare August 24, 2025 20:09
@ldez
Copy link
Contributor Author

ldez commented Aug 24, 2025

Sorry, I added several commits after opening the PR because I found other bugs.

}
});
</script>

<div id="giscus"></div>
<div id="giscus-hextra-bb112b9f807c37c1752e5da6a1652a29"></div>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious where is this id from?

Copy link
Contributor Author

@ldez ldez Aug 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a random hash to be sure to have a unique ID.
Currently, without my PR, if you enable Giscuss and go to the page http://localhost:1313/docs/advanced/comments/ you will see the problem.

The problem happens because the page contains 2 elements with the id giscuss: a title inside the page and the Giscuss div at the bottom of the page.

Screenshot 2025-08-24 at 22-50-17 Comments System – Hextra

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, thanks for the explanation. Might worth adding a line of comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@imfing imfing changed the title fix(giscuss): theme and language fix(giscus): theme and language Aug 24, 2025
@imfing imfing merged commit 546bcc2 into imfing:main Aug 24, 2025
4 checks passed
@ldez ldez deleted the feat/giscuss-theme-lang branch August 24, 2025 21:06
@imfing imfing mentioned this pull request Aug 25, 2025
18 tasks
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.

2 participants