Skip to content

Gitalk文件与Gitment内容重复 #9

Closed
@gorkys

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')

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions