diff --git a/_config.yml b/_config.yml index 1703e2592a0..411e9ed9fec 100644 --- a/_config.yml +++ b/_config.yml @@ -53,6 +53,12 @@ disqus_username: hux # Netease setttings netease_comment: false +#gitalk: +# owner: 你 +# repo: 评论仓库名称 +# clientID: 申请的ID +# clientSecret: 申请的clientSecret +# admin: 名称 # Analytics settings diff --git a/_includes/comments.html b/_includes/comments.html new file mode 100755 index 00000000000..1e6eb74bdf8 --- /dev/null +++ b/_includes/comments.html @@ -0,0 +1,15 @@ +
+ + + \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index d9a138e0b62..fb0efac1326 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -98,6 +98,12 @@

{{ page.subtitle }}

{% endif %} + + {% if site.gitalk %} +
+ {% include comments.html %} +
+ {% endif %} {% if site.netease_comment %}