hexo + Cannot read property 'enable' of undefined

ppok! 2021-05-24 06:51:52
hexo s没有出错,直接可以去自己博客,但是页面出现不来,然后就显示如下错误


D:\hexo>hexo s
INFO Validating config
INFO Start processing
INFO Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.
Unhandled rejection TypeError: D:\hexo\themes\hexo-theme-matery-master\layout\index.ejs:2
1| <% if (is_home() && page.current === 1) { %>
>> 2| <%- partial('_partial/index-cover') %>
3| <% } else { %>
4| <%- partial('_partial/bg-cover') %>
5| <% } %>

D:\hexo\themes\hexo-theme-matery-master\layout\_partial\index-cover.ejs:68
66|
67| <div class="cover-btns">
>> 68| <a href="<%=
69| [theme.dream, theme.music, theme.video, theme.recommend]
70| .every(i=>i.enable)? "#indexCard": "#articles"
71| %>" class="waves-effect waves-light btn">

Cannot read property 'enable' of undefined
at eval (D:\hexo\themes\hexo-theme-matery-master\layout\_partial\index-cover.ejs:34:45)
at Array.every (<anonymous>)
at eval (D:\hexo\themes\hexo-theme-matery-master\layout\_partial\index-cover.ejs:34:34)
at index-cover (D:\hexo\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiledSync (D:\hexo\node_modules\hexo\lib\theme\view.js:132:24)
at _View.renderSync (D:\hexo\node_modules\hexo\lib\theme\view.js:59:25)
at Object.partial (D:\hexo\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
at eval (D:\hexo\themes\hexo-theme-matery-master\layout\index.ejs:11:17)
at index (D:\hexo\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiled (D:\hexo\node_modules\hexo\lib\theme\view.js:136:50)
at _View.render (D:\hexo\node_modules\hexo\lib\theme\view.js:39:17)
at D:\hexo\node_modules\hexo\lib\hexo\index.js:64:21
at tryCatcher (D:\hexo\node_modules\bluebird\js\release\util.js:16:23)
at D:\hexo\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (D:\hexo\node_modules\hexo\lib\hexo\router.js:47:5)
at RouteStream.Readable.read (_stream_readable.js:469:10)
at resume_ (_stream_readable.js:983:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)

...全文
1746 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

61,128

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧