From 40fe6d948a92eec648c048987a6f99bd66471abd Mon Sep 17 00:00:00 2001 From: lianglianglee Date: Mon, 13 Nov 2023 17:23:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E8=AE=BA=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.js | 11 ++++++++++- templates/index.html | 12 ++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/static/index.js b/static/index.js index 1c3b51b..5de3f93 100644 --- a/static/index.js +++ b/static/index.js @@ -93,5 +93,14 @@ function hide_canvas() { overlay.classList.remove('show') } +const gitalk = new Gitalk({ + clientID: 'a0fe07089fe55e24df4e', + clientSecret: '58bc23313fbc2e117a34f024967b6b3caaffc1e9', + repo: 'com-lianglianglee-learn', // The repository of store comments, + owner: 'lianglianglee-learn', + admin: ['lianglianglee-learn'], + id: document.title, // Ensure uniqueness and length less than 50 + distractionFreeMode: false // Facebook-like distraction free mode +}) - +gitalk.render('gitalk-container') diff --git a/templates/index.html b/templates/index.html index f3fb13e..79cccd9 100644 --- a/templates/index.html +++ b/templates/index.html @@ -9,7 +9,7 @@ - {{.title}} + {{.title}} @@ -18,6 +18,8 @@ + + @@ -37,7 +39,7 @@