hexo编辑博客报错Unhandled rejection TypeError: E:\Blog\themes\butterfly\layout\includes\layout.pug:16原因

在搭建Hexo博客时遇到错误,错误信息显示配置文件中`menu`设置出现问题,导致`config.keywords||[]`.join不是一个函数。通过重置或修改个人主题 `_config.yml` 文件中的 `menu` 配置,例如采用提供的示例格式,可以解决此问题。建议检查并更新相关关键字或菜单结构。
​
ERROR:

E:\blog>hexo s
INFO Start processing
INFO Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.
Unhandled rejection TypeError: E:\blog\themes\melody\layout\includes\layout.pug:11
9|
10| - var pageDescription = page.description || page.title || config.description || ''

!=partial('includes/sidebar', {}, {cache: true})



(config.keywords || []).join is not a function
at eval (eval at wrap (E:\blog\node_modules\pug-runtime\wrap.js:6:10), :20:44)
at template (eval at wrap (E:\blog\node_modules\pug-runtime\wrap.js:6:10), :1825:72)
at Theme._View.View._compiled (E:\blog\node_modules\hexo\lib\theme\view.js:123:48)
at Theme._View.View.View.render (E:\blog\node_modules\hexo\lib\theme\view.js:29:15)
at E:\blog\node_modules\hexo\lib\hexo\index.js:365:21
at tryCatcher (E:\blog\node_modules\bluebird\js\release\util.js:16:23)
at E:\blog\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (E:\blog\node_modules\hexo\lib\hexo\router.js:123
评论 7
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

光芒再现dev

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值