Draft
Replace Disqus-only comments with configurable giscus integration and Disqus fallback#36
Conversation
Agent-Logs-Url: https://github.com/lmmsoft/lmmsoft.github.io/sessions/29eda371-6f2b-445f-9663-351c581a0675 Co-authored-by: lmmsoft <1109198+lmmsoft@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
lmmsoft
April 11, 2026 09:30
View session
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR migrates the blog from a Disqus-only comment integration to a GitHub-native path, with giscus as the primary provider and Disqus retained as fallback for safe rollout. It also introduces configuration-based provider switching to support rollback without template rewrites.
Comment provider abstraction
comments_providerin_config.yml(giscus | disqus).disqus_shortnameto avoid hard cutover risk.giscus configuration surface
giscusconfig block in_config.yml:repo,repo_id,category,category_idmapping,strict,reactions_enabled,emit_metadatainput_position,theme,lang,loadingTemplate migration (
_includes/comments.html)giscusand required giscus fields are present.cn -> zh-CN,jp -> ja,kr -> ko, else default locale/en).{% assign comments_provider = site.comments_provider | default: 'giscus' %} {% assign giscus_ready = site.giscus.repo and site.giscus.repo_id and site.giscus.category and site.giscus.category_id %} {% if comments_provider == 'giscus' and giscus_ready %} <!-- giscus script --> {% elsif site.disqus_shortname %} <!-- disqus script --> {% endif %}