aside: enable:true hide:false button:true mobile:true# display on mobile position:right# left or right display:# 控制对应详情页面是否显示侧边栏 archive:true tag:true category:true card_author: enable:true description:<divstyle="line-height:1.38;margin:0.6rem0;text-align:justify;color:rgba(255,255,255,0.8);">这有关于<bstyle="color:#fff">产品、设计、开发</b>相关的问题和看法,还有<bstyle="color:#fff">文章翻译</b>和<bstyle="color:#fff">分享</b>。</div><divstyle="line-height:1.38;margin:0.6rem0;text-align:justify;color:rgba(255,255,255,0.8);">相信你可以在这里找到对你有用的<bstyle="color:#fff">知识</b>和<bstyle="color:#fff">教程</b>。</div> name_link:/about card_announcement: enable:false content:欢迎来看我的博客鸭~ card_weixin: enable:true face:https://img02.anheyu.com/adminuploads/1/2022/09/11/631ddb7c9b250.png backFace:https://img02.anheyu.com/adminuploads/1/2022/09/11/631ddeb0900b7.png 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:false 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:false sort_order:# Don't modify the setting unless you know how it works highlightTags: -Hexo -前端 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:false sort_order:# Don't modify the setting unless you know how it works
# Time difference between publish date and now (网页运行时间) # Formal: Month/Day/Year Time or Year/Month/Day Time runtimeshow: enable:true publish_date:4/1/202100:00:00
最新评论
最新评论只会在刷新时才会去读取,并不会实时变化
由于 API 有 访问次数限制,为了避免调用太多,主题默认存取期限为 10 分钟。也就是説,调用后资料会存在 localStorage 里,10 分钟内刷新网站只会去 localStorage 读取资料。 10 分钟期限一过,刷新页面时才会去调取 API 读取新的数据。( 配置 storage,可自行配置缓存时间)
在侧边栏显示最新评论板块
修改 主题配置文件
1 2 3 4 5 6 7
# Console - Newest Comments newest_comments: enable:true sort_order:# Don't modify the setting unless you know how it works limit:6 storage:10# unit: mins, save data to localStorage avatar:true
# dark mode darkmode: enable:true # Toggle Button to switch dark/light mode button:true # Switch dark/light mode automatically (自动切换 dark mode和 light mode) # autoChangeMode: 1 Following System Settings, if the system doesn't support dark mode, it will switch dark mode between 6 pm to 6 am # autoChangeMode: 2 Switch dark mode between 6 pm to 6 am # autoChangeMode: false autoChangeMode:1 # Set the light mode time. The value is between 0 and 24. If not set, the default value is 6 and 18 start:# 8 end:# 22
参数
解释
button
是否在右下角显示日夜模式切换按钮
autoChangeMode
自动切换的模式
autoChangeMode
autoChangeMode: 1 跟随系统而变化,不支持的浏览器/系统将按照时间 start 到 end 之间切换为 light mode autoChangeMode: 2 只按照时间 start 到 end 之间切换为 light mode ,其余时间为 dark mode autoChangeMode: false 取消自动切换
start
light mode 的开始时间
end
light mode 的结束时间
按钮排序
1 2 3 4 5 6 7
# 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
# https://github.com/vinta/pangu.js # Insert a space between Chinese character and English character (中英文之间添加空格) pangu: enable:false field:post# site/post