Merge pull request #424 from MujeebullahKalwar/comment-widget-fix

Fixed Footer `giscus` Comments Widget
This commit is contained in:
Sunface
2023-08-11 10:56:05 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ var initAll = function () {
script.setAttribute("data-emit-metadata", "0");
script.setAttribute("data-input-position", "top");
script.setAttribute("data-theme", theme);
script.setAttribute("data-lang", lang);
script.setAttribute("data-lang", lang == 'en-US' ? 'en' : lang);
// 预先加载评论会更好,这样用户读到那边时,评论就加载好了
// script.setAttribute("data-loading", "lazy");
document.getElementById("giscus-container").appendChild(script);