diff --git a/_config.yml b/_config.yml index cd65f3b..7de8528 100644 --- a/_config.yml +++ b/_config.yml @@ -617,6 +617,8 @@ 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 + # When the official proxy is not available, you can change it to your own proxy address + proxy: https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token # This is official proxy adress # 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.njk b/layout/_third-party/comments/gitalk.njk index a25b6f7..54207b7 100644 --- a/layout/_third-party/comments/gitalk.njk +++ b/layout/_third-party/comments/gitalk.njk @@ -11,6 +11,7 @@ NexT.utils.loadComments('.gitalk-container', () => { owner : '{{ theme.gitalk.github_id }}', admin : ['{{ theme.gitalk.admin_user }}'], id : '{{ gitalk_md5(page.path) }}', + proxy : '{{ theme.gitalk.proxy }}', {%- if theme.gitalk.language == '' %} language: window.navigator.language, {% else %}