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 @@ -