Permalink
Browse files

增加评论功能

  • Loading branch information...
1 parent d35efb2 commit 91940b00b1cb067a88c33277ea2c922a4302c624 @seisman seisman committed Apr 5, 2016
Showing with 17 additions and 0 deletions.
  1. +16 −0 _includes/comments.html
  2. +1 −0 _layouts/post.html
@@ -0,0 +1,16 @@
+<!-- 多说评论框 start -->
+<div class="ds-thread" data-thread-key="{{ page.id }}" data-title="{{ page.title }}" data-url="http://examples.gmt-china.org{{ page.url }}"></div>
+<!-- 多说评论框 end -->
+<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
+<script type="text/javascript">
+var duoshuoQuery = {short_name:"gmt-china"};
+ (function() {
+ var ds = document.createElement('script');
+ ds.type = 'text/javascript';ds.async = true;
+ ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
+ ds.charset = 'UTF-8';
+ (document.getElementsByTagName('head')[0]
+ || document.getElementsByTagName('body')[0]).appendChild(ds);
+ })();
+ </script>
+<!-- 多说公共JS代码 end -->
View
@@ -14,4 +14,5 @@
</p>
{{ content }}
+ {% include comments.html %}
</article>

0 comments on commit 91940b0

Please sign in to comment.