diff --git a/_config.yml b/_config.yml index 61cc72d5e1..abc60c4878 100644 --- a/_config.yml +++ b/_config.yml @@ -640,6 +640,7 @@ gitalk: client_secret: # GitHub Application Client Secret admin_user: # GitHub repo owner and collaborators, only these guys can initialize gitHub issues distraction_free_mode: true # Facebook-like distraction free mode + create_issue_manually: true # Manually create issue, please refer to https://github.com/gitalk/gitalk/issues/440 for details # Gitalk's display language depends on user's browser or system environment # If you want everyone visiting your site to see a uniform language, you can set a force language value # Available values: en | es-ES | fr | ru | zh-CN | zh-TW diff --git a/layout/_third-party/comments/gitalk.swig b/layout/_third-party/comments/gitalk.swig index 634eb06d64..cb86c3593d 100644 --- a/layout/_third-party/comments/gitalk.swig +++ b/layout/_third-party/comments/gitalk.swig @@ -20,6 +20,7 @@ NexT.utils.loadComments(document.querySelector('#gitalk-container'), () => { language: '{{ theme.gitalk.language }}', {%- endif %} distractionFreeMode: {{ theme.gitalk.distraction_free_mode }} + createIssueManually: {{ theme.gitalk.create_issue_manually }} }); gitalk.render('gitalk-container'); }, window.Gitalk);