Contents
  1. 1. 安装
  2. 2. 换主题颜色
  3. 3. 增加多说评论功能
  4. 4. 改显示的标签数目

安装

换主题颜色

原来的颜色是: #ea6753
在pacman\source\css_base\variable里改
我改为了: color-theme = #2BABD2

增加多说评论功能

pacman增加多说还是蛮方便的。
可以参考下这篇文章:http://www.lichanglin.cn/%E5%9C%A8hexo%E4%B8%AD%E5%8A%A0%E5%85%A5%E5%A4%9A%E8%AF%B4%E8%AF%84%E8%AE%BA/

另外补一句:data-thread-key里的值不要忘了

  • 我的代码是:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30


<!-- 多说评论框 start -->

<div class="ds-thread" data-thread-key="<%= page.path %>" data-title="<%= page.title %>" data-url="<%= page.current_url %>"></div>

<!-- 多说评论框 end -->

<!-- 多说公共JS代码 start (一个网页只需插入一次) -->

<script type="text/javascript">

var duoshuoQuery = {short_name:"ysjdb"};

(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 -->

改显示的标签数目

themes\pacman\layout_widget里的tag文件
.limit(20)把这里的20改为想要的数字就ok了

Contents
  1. 1. 安装
  2. 2. 换主题颜色
  3. 3. 增加多说评论功能
  4. 4. 改显示的标签数目