Skip to content

请问侧边栏挂件的逻辑是什么 #129

Answered by xaoxuu
glimmeringlight asked this question in Q&A
Discussion options

You must be logged in to vote

hexo 的覆盖规则是优先合并,所以空数组不能覆盖掉数组。 https://hexo.io/zh-cn/docs/configuration#%E4%BD%BF%E7%94%A8%E4%BB%A3%E6%9B%BF%E4%B8%BB%E9%A2%98%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6

这里默认值设置的不合适,后续我会想办法优化的,现在你可以通过设置一个无效的 recentghuser 来阻止其显示,在 source/_data/widgets.yml中将组件本体覆盖为空:

recent: # 后面什么都不写
ghuser: # 后面什么都不写

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by glimmeringlight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants