butterfly主题魔改07:其他设置
01 字数统计功能
安装插件。
1
| npm install hexo-wordcount --save
|
博客根目录下_config.butterfly.yml
文件的字数统计功能设置
的代码如下:
1 2 3 4 5 6
| wordcount: enable: true post_wordcount: true min2read: true total_wordcount: true
|
02 复制功能设置
博客根目录下_config.butterfly.yml
文件的复制功能设置
的代码如下:
1 2 3 4 5 6
| copy: enable: true copyright: enable: true limit_count: 300
|
04 文章元数据显示设置
博客根目录下_config.butterfly.yml
文件的文章元数据显示设置
的代码如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
post_meta: page: date_type: created date_format: date categories: true tags: true label: true post: position: center date_type: both date_format: date categories: true tags: true label: true
|
05 全局字体设置
博客根目录下_config.butterfly.yml
文件的全局字体设置
的代码如下:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
font: global_font_size: 17px code_font_size: 15px font_family: "'Chewy', 'Ma Shan Zheng', cursive" code_font_family: 'Consolas'
blog_title_font: font_link: 'https://fonts.googleapis.com/css2?family=Chewy&family=Ma+Shan+Zheng&family=Fredoka+One&display=swap' font_family: "'Fredoka One', 'Ma Shan Zheng', cursive"
|
06 社交媒体链接配置

博客根目录下_config.butterfly.yml
文件
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
social: fab fa-github: https://github.com/kukual || Github || '#8a2be2' fa-solid fa-code: https://blog.csdn.net/weixin_74811095 || CSDN || '#8a2be2' fa-solid fa-book: https://www.xiaohongshu.com/user/profile/5e8a0aae0000000001002ce4 || redbook || '#8a2be2' fab fa-bilibili: https://space.bilibili.com/498478848 || bilibili || '#8a2be2'
|