From b44a17358c31af0ec4ed7974db9e716d330e74c1 Mon Sep 17 00:00:00 2001 From: ipenmanship Date: Wed, 24 Mar 2021 15:28:09 +0800 Subject: [PATCH] feat: support for gitalk system configuration parameter to manually create issue --- _config.yml | 1 + layout/_third-party/comments/gitalk.swig | 1 + 2 files changed, 2 insertions(+) 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);