Snippet扩展主题配置

下面是对snippet主题做的扩展功能配置。 下文以$BLOG_HOME表示你的博客根目录 打开$BLOG_HOME/themes/snippet_config.yml,

分类widget设置不显示的分类名称

当使用分类做菜单时在地址栏中显示字母但不想在分类widget显示时下面配置就用到了

category:
  excludeNames: ['tool','qianduan','houduan','zatan'] # 分类sidebar不显示的分类名称

social widget使用阿里iconfont字体图标

当我们想要的图标在fontawesome里没有时,我们可以使用iconfont,iconfont是阿里妈妈推出的字体图标,我们可以自己设计也可以使用他人已经设置好的,里面有许多免费的好图标,可以直接拿过来用。 使用iconfont字体图标配置如下:

 - name: 简书
   iconfont: true
   icon: jianshu
   href: //www.jianshu.com/u/046520e7e044

将iconfont设置为true,默认使用的是fontawesome

阿里妈妈iconfont css文件

## 阿里妈妈iconfont css文件
iconfont:
    enable: true
    css_data:
        - path: fonts/iconfont/default/iconfont.css

说明:enable是否启用,path:iconfont的css文件应用位置

文章目录设置

# Table Of Contents in the Sidebar
toc:
  enable: true
  # Automatically add list number to toc.
  number: false

说明:enable启用目录配置,number目录自动添加编号

修复主题网盟CNZZ网站统计的问题,改用下面配置

## 网盟CNZZ网站统计
cnzz_anaylytics:
  enable: true  #是否启用
  hiden: false    #使用显示文字
  head: s13   #统计头
  id: 1265515627  #站长统计的ID

部署到coding添加host by功能

codeing_host_by:
  enable: true

使用leancloud统计文章计数配置

# Show number of visitors to each article.
# You can visit https://leancloud.cn get AppID and AppKey.
leancloud_visitors:
  enable: true
  app_id: vKK2gYgNyw6WBBB2Dj42AsLN-gzGzoHsz
  app_key: lO1AXA5FHRqXIa8aum7QIuyd

使用卜算子计数功能

busuanzi_count:
  enable: true
  site_uv: true
  site_uv_header: <i class="fa fa-user"></i>本站访客数
  site_uv_footer: 人次
  site_pv: true
  site_pv_header: <i class="fa fa-eye"></i>本站总访问量
  site_pv_footer: 次

  page_pv: false
  page_pv_header: <i class="fa fa-file-o"></i>本文总阅读量
  page_pv_footer: 次

打赏功能配置

## 文章末尾是否显示打赏按钮
reward_comment: 欣赏此文?求鼓励,求支持!
wechatpay: http://ofv7c2awe.bkt.clouddn.com/wechatpay.gif
# alipay: /images/alipay.JPG

results matching ""

    No results matching ""