diff --git a/_config.template.yml b/_config.template.yml index b1bf9b364..b59a95fb7 100644 --- a/_config.template.yml +++ b/_config.template.yml @@ -221,8 +221,8 @@ sidebar: # Comment Systems # Available value of "use": -# disqus | disqus_click | changyan | livere | gitment | valine -# If you want to use gitment,you should get the client_id and client_secret form https://github.com/settings/applications/new +# disqus | disqus_click | changyan | livere | gitment | gitalk | valine +# If you want to use gitment or gitalk,you should get the client_id and client_secret form https://github.com/settings/applications/new # If you want to use valine,you should get the app_id and app_key form https://leancloud.cn ,more setting please see https://github.com/xCss/Valine comment: use: @@ -237,6 +237,10 @@ comment: gitment_client_secret : # github app client secret valine_leancloud_appId: # leancloud application app id valine_leancloud_appKey: # leancloud application app key + gitalk_owner: # git repo of the hexo + gitalk_repo: # git repo's owner + gitalk_client_id: # github app client id + gitalk_client_secret : # github app client secret # Search Systems # Available value: diff --git a/layout/_widget/comment/gitalk/common.ejs b/layout/_widget/comment/gitalk/common.ejs new file mode 100644 index 000000000..c1f700678 --- /dev/null +++ b/layout/_widget/comment/gitalk/common.ejs @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layout/_widget/comment/gitalk/enter.ejs b/layout/_widget/comment/gitalk/enter.ejs new file mode 100644 index 000000000..e39b96eef --- /dev/null +++ b/layout/_widget/comment/gitalk/enter.ejs @@ -0,0 +1,10 @@ + +