# _config.butterfly.yml anchor: # when you scroll, the URL will update according to header id. auto_update:false # Click the headline to scroll and update the anchor click_to_scroll:false
# _config.butterfly.yml aside: enable:true# 是否显示侧边栏 hide:false button:true# 是否展示侧边栏显/隐按钮 mobile:true# display on mobile position:right# left/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/niezicheng card_announcement: enable:true content:👏👏希望和各位站友共同进步! 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 orderby:random# Order of tags, random/name/length order:1# Sort of order. 1, asc for ascending; -1, desc for descending 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 card_post_series: enable:true series_title:false# The title shows the series name orderBy:"date"# Order by title or date order:-1# Sort of order. 1, asc for ascending; -1, desc for descending
由于 API 有访问次数限制,为了避免调用太多,主题默认存取期限为 10 分钟。也就是説,调用后资料会存在 localStorage 里,10 分钟内刷新网站只会去 localStorage 读取资料。 10 分钟期限一过,刷新页面时才会去调取 API 读取新的数据。( 3.6.0 新增了 storage 配置,可自行配置缓存时间)
# _config.butterfly.yml newest_comments: enable:true# 是否展示最新评论 sort_order:# Don't modify the setting unless you know how it works limit:6# 显示的数量 storage:10# 设置缓存时间,单位分钟 avatar:true# 是否显示头像
# _config.butterfly.yml rightside_scroll_percent:true# show scroll percent in scroll-to-top button
按钮排序
# _config.butterfly.yml # Don't modify the following settings unless you know how they work (非必要请不要修改 ) # Choose: readmode,translate,darkmode,hideAside,toc,chat,comment # Don't repeat 不要重复 rightside_item_order: enable:false hide:# readmode,translate,darkmode,hideAside show:# toc,chat,comment