butterfly主题魔改11:文章页面美化
01 文章页面设置
修改目录设置、文章版权声明、打赏设置、相关文章推荐等板块。
博客根目录下_config.butterfly.yml
文件的文章页面设置
的代码如下:
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
toc: post: true page: true number: true expand: false style_simple: false scroll_percent: true
post_copyright: enable: true decode: false author_href: https://kukual.github.io/ license: CC BY-NC-SA 4.0 license_url: https://creativecommons.org/licenses/by-nc-sa/4.0/
reward: enable: true text: "感谢您的支持!" comment: "请我喝杯咖啡吧~" QR_code: - img: /img/wechat.jpg text: 微信
post_edit: enable: false url:
related_post: enable: true limit: 6 date_type: created
post_pagination: 1
noticeOutdate: enable: true style: flat limit_day: 365 position: top message_prev: 本文最后更新于 message_next: 天前,部分内容可能已失效
|
02 代码块设置
效果图

博客根目录下_config.butterfly.yml
文件的代码块设置
的代码如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
code_blocks: theme: darker macStyle: true height_limit: 400 word_wrap: true copy: true language: true shrink: false fullpage: true
|
03 文章内容标题前缀图标

博客根目录下_config.butterfly.yml
文件的文章内容美化配置
的代码如下:
1 2 3 4 5 6
| beautify: enable: true field: post title_prefix_icon: '\f0e7' title_prefix_icon_color: '#8a2be2'
|
04 分享系统配置
博客根目录下_config.butterfly.yml
文件的分享系统配置
的代码如下:
1 2 3 4 5 6 7 8 9 10 11 12
| share: use: sharejs sharejs: sites: facebook,twitter,wechat,weibo,qq addtoany: item: facebook,twitter,wechat,sina_weibo,facebook_messenger,email,copy_link
|