var article_id = window.location.pathname; if (article_id.length >= 50) { article_id = article_id.substr(0, 49); } var gitalk = new Gitalk({ clientID: '41bc2c895cf96cc7784e', clientSecret: 'ec91826138658e389695476929f25449fa68f449', id: article_id, repo: 'comment', owner: 'letiantian', admin: 'letiantian', distractionFreeMode: 'true', }) gitalk.render('gitalk-container')