Skip to content

Conversation

anykeyd
Copy link
Contributor

@anykeyd anykeyd commented Mar 23, 2023

This is an enhancement or feature.

Summary

New attributes for the giscus comment provider

Context

  1. Configuration attributes:
  • data-emit-metadata - Discussion metadata will be sent periodically to the parent window (the embedding page). For demonstration, enable this option and open your browser's console on this page. See the documentation for more details.
  • data-input-position - The comment input box will be placed above the comments, so that users can leave a comment without scrolling to the bottom of the discussion.
  • data-lang - Interface language.
  • data-loading - Loading of the comments will be deferred until the user scrolls near the comments container. This is done by adding loading="lazy" to the <iframe> element.
  • data-strict - Avoid mismatches due to GitHub's fuzzy searching method when there are multiple discussions with similar titles. See the documentation for more details.
  1. async - HTML attribute for the <script> tag

@iBug iBug merged commit 409bc92 into mmistakes:master Apr 23, 2024
minyoongi96 pushed a commit to minyoongi96/minyoongi96.github.io that referenced this pull request Aug 26, 2024
* update giscus

* fix site variable name

---------

Co-authored-by: Andrii Burkatskyi <[email protected]>
lfpareja pushed a commit to lfpareja/lfpareja.github.io that referenced this pull request Mar 31, 2025
* update giscus

* fix site variable name

---------

Co-authored-by: Andrii Burkatskyi <[email protected]>
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