Fixed Footer giscus Comments Widget

This commit is contained in:
Mujeebullah Kalwar
2023-07-20 03:01:14 +05:00
parent 88191e18b2
commit 1ae378df81
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-emit-metadata", "0");
script.setAttribute("data-input-position", "top"); script.setAttribute("data-input-position", "top");
script.setAttribute("data-theme", theme); script.setAttribute("data-theme", theme);
script.setAttribute("data-lang", lang); script.setAttribute("data-lang", lang == 'en-US' ? 'en' : lang);
// 预先加载评论会更好,这样用户读到那边时,评论就加载好了 // 预先加载评论会更好,这样用户读到那边时,评论就加载好了
// script.setAttribute("data-loading", "lazy"); // script.setAttribute("data-loading", "lazy");
document.getElementById("giscus-container").appendChild(script); document.getElementById("giscus-container").appendChild(script);

View File

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