aside: enable:true hide:false button:true mobile:true# display on mobile position:left# left or right display: archive:true tag:true category:true card_author: enable:true description: button: enable:true icon:fabfa-github text:FollowMe link:https://github.com/xxxxxx card_announcement: enable:true content:欢迎光临小站,这里是我日常收集和整理的总结,希望能对你有所帮助:)<br/><br/>本站的内容经过个人加工总结而来,也参考了网友们分享的资料,如有侵权,请第一时间联系我,我将及时进行修改和删除😊 card_recent_post: enable:true limit:5# if set 0 will show all sort:date# date or updated sort_order:# Don't modify the setting unless you know how it works card_categories: enable:true limit:8# if set 0 will show all expand:none# none/true/false sort_order:# Don't modify the setting unless you know how it works card_tags: enable:true limit:40# if set 0 will show all color:true sort_order:# Don't modify the setting unless you know how it works card_archives: enable:true type:monthly# yearly or monthly format:MMMMYYYY# eg: YYYY年MM月 order:-1# Sort of order. 1, asc for ascending; -1, desc for descending limit:8# if set 0 will show all sort_order:# Don't modify the setting unless you know how it works card_webinfo: enable:true post_count:true last_push_date:true sort_order:# Don't modify the setting unless you know how it works
cover: # display the cover or not (是否显示文章封面) index_enable:false aside_enable:false archives_enable:false # the position of cover in home page (封面显示的位置) # left/right/both position:both # When cover is not set, the default cover is displayed (当没有设置cover时,默认的封面显示) default_cover: # - https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg
建议没有文章封面时,将上述几个开关可以考虑关闭掉。
文章基本设置
在 _config.butterfly.yml 下找到 post_meta :
1 2 3 4 5 6 7 8 9 10 11 12 13
post_meta: page:# Home Page date_type:created# created or updated or both 主页文章日期是创建日或者更新日或都显示 date_format:date# date/relative 显示日期还是相对日期 categories:true# true or false 主页是否显示分类 tags:false# true or false 主页是否显示标签 label:true# true or false 显示描述性文字 post: date_type:both# created or updated or both 文章页日期是创建日或者更新日或都显示 date_format:date# date/relative 显示日期还是相对日期 categories:true# true or false 文章页是否显示分类 tags:true# true or false 文章页是否显示标签 label:true# true or false 显示描述性文字
主页文章显示高度,显示篇数:
1 2 3
index_post_content: method:3 length:500# if you set method to 2 or 3, the length need to config