下面是我对snippet主题做的扩展功能配置。
下文以$BLOG_HOME
表示你的博客根目录
打开$BLOG_HOME/themes/snippet_config.yml
,
当使用分类做菜单时在地址栏中显示字母但不想在分类widget显示时下面配置就用到了
category:
excludeNames: ['tool','qianduan','houduan','zatan'] # 分类sidebar不显示的分类名称
当我们想要的图标在fontawesome里没有时,我们可以使用iconfont,iconfont是阿里妈妈推出的字体图标,我们可以自己设计也可以使用他人已经设置好的,里面有许多免费的好图标,可以直接拿过来用。 使用iconfont字体图标配置如下:
- name: 简书
iconfont: true
icon: jianshu
href: //www.jianshu.com/u/046520e7e044
将iconfont设置为true,默认使用的是fontawesome
## 阿里妈妈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_anaylytics:
enable: true #是否启用
hiden: false #使用显示文字
head: s13 #统计头
id: 1265515627 #站长统计的ID
codeing_host_by:
enable: true
# 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