Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Support for gitalk system configuration parameter to manually c… #1627

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions layout/_third-party/comments/gitalk.swig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down