mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-19 18:42:34 +00:00
New gitalk proxy option (#205)
This commit is contained in:
parent
7821062db1
commit
538b06c7e8
@ -617,6 +617,8 @@ gitalk:
|
|||||||
client_secret: # GitHub Application Client Secret
|
client_secret: # GitHub Application Client Secret
|
||||||
admin_user: # GitHub repo owner and collaborators, only these guys can initialize gitHub issues
|
admin_user: # GitHub repo owner and collaborators, only these guys can initialize gitHub issues
|
||||||
distraction_free_mode: true # Facebook-like distraction free mode
|
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
|
# 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
|
# 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
|
# Available values: en | es-ES | fr | ru | zh-CN | zh-TW
|
||||||
|
|||||||
1
layout/_third-party/comments/gitalk.njk
vendored
1
layout/_third-party/comments/gitalk.njk
vendored
@ -11,6 +11,7 @@ NexT.utils.loadComments('.gitalk-container', () => {
|
|||||||
owner : '{{ theme.gitalk.github_id }}',
|
owner : '{{ theme.gitalk.github_id }}',
|
||||||
admin : ['{{ theme.gitalk.admin_user }}'],
|
admin : ['{{ theme.gitalk.admin_user }}'],
|
||||||
id : '{{ gitalk_md5(page.path) }}',
|
id : '{{ gitalk_md5(page.path) }}',
|
||||||
|
proxy : '{{ theme.gitalk.proxy }}',
|
||||||
{%- if theme.gitalk.language == '' %}
|
{%- if theme.gitalk.language == '' %}
|
||||||
language: window.navigator.language,
|
language: window.navigator.language,
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user