New gitalk proxy option (#205)

This commit is contained in:
XuWenbo 2021-02-17 11:58:14 +08:00 committed by GitHub
parent 7821062db1
commit 538b06c7e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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 %}