@
Tomotoes #67 我觉得你的主题挺好看,然后照着你的安装文档安装了以后,报错了。能看下是什么原因吗?
```
INFO Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.
ERROR {
err: ReferenceError: F:\blog\themes\tomotoes\layout\layout.ejs:6
4| <body>
5| <%- partial('_partial/loading') %>
>> 6| <%- partial('_partial/menu') %>
7| <main id="main">
8| <%- body %>
9| <%- partial('_partial/footer') %>
F:\blog\themes\tomotoes\layout\_partial\menu.ejs:31
29| menuItem = theme.menu[i];
30| %>
>> 31| <li class="waves-block waves-effect<% if(isActive(menuItem)){ %> active<% } %>">
32| <a href="<%- url_for(menuItem.url) %>" <% if(menuItem.target){ %>target="_blank"<% } %> >
33| <i class="icon icon-lg icon-<%= i %>"></i>
34| <span><%=(menuItem.text || _.startCase(i)) %></span><i class="icon icon-lg icon-caret-left"></i>
_ is not defined
at isActive (F:\blog\themes\tomotoes\layout\_partial\menu.ejs:35:88)
at eval (F:\blog\themes\tomotoes\layout\_partial\menu.ejs:43:11)
at menu (F:\blog\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiledSync (F:\blog\node_modules\hexo\lib\theme\view.js:132:24)
at _View.renderSync (F:\blog\node_modules\hexo\lib\theme\view.js:59:25)
at Object.partial (F:\blog\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
at eval (F:\blog\themes\tomotoes\layout\layout.ejs:16:17)
at layout (F:\blog\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiled (F:\blog\node_modules\hexo\lib\theme\view.js:136:50)
at _View.render (F:\blog\node_modules\hexo\lib\theme\view.js:39:17)
at F:\blog\node_modules\hexo\lib\theme\view.js:51:25
at tryCatcher (F:\blog\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (F:\blog\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (F:\blog\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (F:\blog\node_modules\bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (F:\blog\node_modules\bluebird\js\release\promise.js:729:18)
at _drainQueueStep (F:\blog\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (F:\blog\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (F:\blog\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (F:\blog\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:456:21) {
path: 'F:\\blog\\themes\\tomotoes\\layout\\layout.ejs'
}
} Render HTML failed: index.html
Unhandled rejection ReferenceError: F:\blog\themes\tomotoes\layout\layout.ejs:6
4| <body>
5| <%- partial('_partial/loading') %>
>> 6| <%- partial('_partial/menu') %>
7| <main id="main">
8| <%- body %>
9| <%- partial('_partial/footer') %>
F:\blog\themes\tomotoes\layout\_partial\menu.ejs:31
29| menuItem = theme.menu[i];
30| %>
>> 31| <li class="waves-block waves-effect<% if(isActive(menuItem)){ %> active<% } %>">
32| <a href="<%- url_for(menuItem.url) %>" <% if(menuItem.target){ %>target="_blank"<% } %> >
33| <i class="icon icon-lg icon-<%= i %>"></i>
34| <span><%=(menuItem.text || _.startCase(i)) %></span><i class="icon icon-lg icon-caret-left"></i>
_ is not defined
at isActive (F:\blog\themes\tomotoes\layout\_partial\menu.ejs:35:88)
at eval (F:\blog\themes\tomotoes\layout\_partial\menu.ejs:43:11)
at menu (F:\blog\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiledSync (F:\blog\node_modules\hexo\lib\theme\view.js:132:24)
at _View.renderSync (F:\blog\node_modules\hexo\lib\theme\view.js:59:25)
at Object.partial (F:\blog\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
at eval (F:\blog\themes\tomotoes\layout\layout.ejs:16:17)
at layout (F:\blog\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiled (F:\blog\node_modules\hexo\lib\theme\view.js:136:50)
at _View.render (F:\blog\node_modules\hexo\lib\theme\view.js:39:17)
at F:\blog\node_modules\hexo\lib\theme\view.js:51:25
at tryCatcher (F:\blog\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (F:\blog\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (F:\blog\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (F:\blog\node_modules\bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (F:\blog\node_modules\bluebird\js\release\promise.js:729:18)
at _drainQueueStep (F:\blog\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (F:\blog\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (F:\blog\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (F:\blog\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:456:21)
```