Closed
Description
修改后:
if theme.gitalk && theme.gitalk.enable
- let lang = config.language === 'zh-Hans' ? 'zh-CN' : config.language
#gitalk-container
script.
var gitalk = new Gitalk({
clientID: '!{theme.gitalk.client_id}',
clientSecret: '!{theme.gitalk.client_secret}',
repo: '!{theme.gitalk.repo}',
owner: '!{theme.gitalk.owner}',
admin: '!{theme.gitalk.admin}',
id: md5(decodeURI(location.pathname)),
language: '!{lang}'
})
gitalk.render('gitalk-container')