bugzone

前言:

         在GitHub可以搭建静态博客,但是页面都是静态的,没有讨论区,有点死气沉沉的,刚开始准备找下有没有好点的json/xml的留言板功能,准备集成。

         搜索了良久,没有找到适合的,但是发现了一下三款社会化评论插件。

进入主题:

1.Dispus

  国外知名的,但是国内访问太慢了,让人有点受不了。

<div id="disqus_thread"></div>
	<script type="text/javascript">
		/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
		var disqus_shortname = \'79kg\'; // required: replace example with your forum shortname 这个地方需要改成你配置的网站名
		
		/* * * DON\'T EDIT BELOW THIS LINE * * */
		(function() {
			var dsq = document.createElement(\'script\'); dsq.type = \'text/javascript\'; dsq.async = true;
			dsq.src = \'http://\' + disqus_shortname + \'.disqus.com/embed.js\';
			(document.getElementsByTagName(\'head\')[0] || document.getElementsByTagName(\'body\')[0]).appendChild(dsq);
		})();
	</script>

 2.多说duoshuo

  比国外的Dispus加载快,稳定。

<!-- 多说评论框 start -->
	<div class="ds-thread" data-thread-key="请将此处替换成文章在你的站点中的ID" data-title="请替换成文章的标题" data-url="请替换成文章的网址"></div>
<!-- 多说评论框 end -->
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"79kg"};
	(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 -->

 3.友言uyan

   这款文档没有多说齐全,但是默认的比较人性化。

<!-- UY BEGIN -->
<div id="uyan_frame"></div>
<script type="text/javascript" src="http://v2.uyan.cc/code/uyan.js?uid=你的ID"></script>
<!-- UY END -->

 

我使用的友言。

          

分类:

技术点:

相关文章:

  • 2021-06-26
  • 2021-10-17
  • 2021-11-03
  • 2021-11-27
  • 2022-01-07
  • 2021-06-15
猜你喜欢
  • 2022-01-23
  • 2021-05-05
  • 2021-09-09
  • 2021-12-13
  • 2021-06-02
  • 2021-10-14
  • 2021-12-16
相关资源
相似解决方案