Skip to content

hexo g 生成失败, Render HTML failed #522

@opfanswyx

Description

@opfanswyx

我的运行环境是ubuntu云服务器,把public目录托管给nginx服务器

root@VM-0-6-ubuntu:~/hexo# hexo -v
INFO  Validating config
hexo: 5.2.0
hexo-cli: 4.2.0
os: Linux 4.15.0-88-generic linux x64
node: 12.18.0
v8: 7.8.279.23-node.37
uv: 1.37.0
zlib: 1.2.11
brotli: 1.0.7
ares: 1.16.0
modules: 72
nghttp2: 1.41.0
napi: 6
llhttp: 2.0.4
http_parser: 2.9.3
openssl: 1.1.1g
cldr: 37.0
icu: 67.1
tz: 2019c
unicode: 13.0
root@VM-0-6-ubuntu:~/hexo# node -v
v12.18.0
root@VM-0-6-ubuntu:~/hexo# npm -v
6.14.4
root@VM-0-6-ubuntu:~/hexo# 

切换为默认主题,next主题都能正常生成,indigo无法生成,报错如下:

root@VM-0-6-ubuntu:~/hexo# hexo g
INFO  Validating config
INFO  Start processing
INFO  Files loaded in 260 ms
ERROR ReferenceError: /root/hexo/themes/indigo/layout/categories.ejs:1
 >> 1| <%- partial('_partial/header', {
    2|     title: locals.title || theme.categories_title,
    3|     hdClass: 'categories-header'
    4| }) %>

/root/hexo/themes/indigo/layout/_partial/header.ejs:40
    38|     </div>
    39| 
 >> 40|     <%- partial('tags-bar', {
    41|         type: hdClass.split('-')[0]
    42|     }) %>
    43| 

/root/hexo/themes/indigo/layout/_partial/tags-bar.ejs:7
    5|         <a href="<%= url_for('/' + type) %>" style="-webkit-order:-1;order:-1" class="tags-list-item waves-effect waves-button waves-light
    6|             <% if(path === type + '/index.html'){%> active<%}%>"><%= __('tag.all') %></a>
 >> 7|         <%
    8|             var options = [];
    9| 
    10|             (type === 'tags' ? site.tags : site.categories).each(function(o) {

_ is not defined
    at eval (/root/hexo/themes/indigo/layout/_partial/tags-bar.ejs:32:25)
    at tags-bar (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiledSync (/root/hexo/node_modules/hexo/lib/theme/view.js:132:24)
    at _View.renderSync (/root/hexo/node_modules/hexo/lib/theme/view.js:59:25)
    at Object.partial (/root/hexo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
    at eval (/root/hexo/themes/indigo/layout/_partial/header.ejs:55:17)
    at header (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiledSync (/root/hexo/node_modules/hexo/lib/theme/view.js:132:24)
    at _View.renderSync (/root/hexo/node_modules/hexo/lib/theme/view.js:59:25)
    at Object.partial (/root/hexo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
    at eval (/root/hexo/themes/indigo/layout/categories.ejs:8:17)
    at categories (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiled (/root/hexo/node_modules/hexo/lib/theme/view.js:136:50)
    at _View.render (/root/hexo/node_modules/hexo/lib/theme/view.js:39:17)
    at /root/hexo/node_modules/hexo/lib/hexo/index.js:64:21
    at tryCatcher (/root/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at /root/hexo/node_modules/bluebird/js/release/method.js:15:34
    at RouteStream._read (/root/hexo/node_modules/hexo/lib/hexo/router.js:47:5)
    at RouteStream.Readable.read (_stream_readable.js:468:10)
    at resume_ (_stream_readable.js:982:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  path: '/root/hexo/themes/indigo/layout/categories.ejs'
}
ERROR ReferenceError: /root/hexo/themes/indigo/layout/tags.ejs:1
 >> 1| <%- partial('_partial/header', {
    2|     title: locals.title || theme.tags_title,
    3|     hdClass: 'tags-header'
    4| }) %>

/root/hexo/themes/indigo/layout/_partial/header.ejs:40
    38|     </div>
    39| 
 >> 40|     <%- partial('tags-bar', {
    41|         type: hdClass.split('-')[0]
    42|     }) %>
    43| 

/root/hexo/themes/indigo/layout/_partial/tags-bar.ejs:7
    5|         <a href="<%= url_for('/' + type) %>" style="-webkit-order:-1;order:-1" class="tags-list-item waves-effect waves-button waves-light
    6|             <% if(path === type + '/index.html'){%> active<%}%>"><%= __('tag.all') %></a>
 >> 7|         <%
    8|             var options = [];
    9| 
    10|             (type === 'tags' ? site.tags : site.categories).each(function(o) {

_ is not defined
    at eval (/root/hexo/themes/indigo/layout/_partial/tags-bar.ejs:32:25)
    at tags-bar (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiledSync (/root/hexo/node_modules/hexo/lib/theme/view.js:132:24)
    at _View.renderSync (/root/hexo/node_modules/hexo/lib/theme/view.js:59:25)
    at Object.partial (/root/hexo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
    at eval (/root/hexo/themes/indigo/layout/_partial/header.ejs:55:17)
    at header (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiledSync (/root/hexo/node_modules/hexo/lib/theme/view.js:132:24)
    at _View.renderSync (/root/hexo/node_modules/hexo/lib/theme/view.js:59:25)
    at Object.partial (/root/hexo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
    at eval (/root/hexo/themes/indigo/layout/tags.ejs:8:17)
    at tags (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiled (/root/hexo/node_modules/hexo/lib/theme/view.js:136:50)
    at _View.render (/root/hexo/node_modules/hexo/lib/theme/view.js:39:17)
    at /root/hexo/node_modules/hexo/lib/hexo/index.js:64:21
    at tryCatcher (/root/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at /root/hexo/node_modules/bluebird/js/release/method.js:15:34
    at RouteStream._read (/root/hexo/node_modules/hexo/lib/hexo/router.js:47:5)
    at RouteStream.Readable.read (_stream_readable.js:468:10)
    at resume_ (_stream_readable.js:982:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  path: '/root/hexo/themes/indigo/layout/tags.ejs'
}
ERROR ReferenceError: /root/hexo/themes/indigo/layout/archive.ejs:6
    4| }) %>
    5| <div class="container body-wrap fade">
 >> 6|     <%
    7|         var posts = [];
    8| 
    9|         page.posts.each(function(post){

_ is not defined
    at eval (/root/hexo/themes/indigo/layout/archive.ejs:22:25)
    at archive (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiled (/root/hexo/node_modules/hexo/lib/theme/view.js:136:50)
    at _View.render (/root/hexo/node_modules/hexo/lib/theme/view.js:39:17)
    at /root/hexo/node_modules/hexo/lib/hexo/index.js:64:21
    at tryCatcher (/root/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at /root/hexo/node_modules/bluebird/js/release/method.js:15:34
    at RouteStream._read (/root/hexo/node_modules/hexo/lib/hexo/router.js:47:5)
    at RouteStream.Readable.read (_stream_readable.js:468:10)
    at resume_ (_stream_readable.js:982:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  path: '/root/hexo/themes/indigo/layout/archive.ejs'
}
ERROR ReferenceError: /root/hexo/themes/indigo/layout/archive.ejs:6
    4| }) %>
    5| <div class="container body-wrap fade">
 >> 6|     <%
    7|         var posts = [];
    8| 
    9|         page.posts.each(function(post){

_ is not defined
    at eval (/root/hexo/themes/indigo/layout/archive.ejs:22:25)
    at archive (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiled (/root/hexo/node_modules/hexo/lib/theme/view.js:136:50)
    at _View.render (/root/hexo/node_modules/hexo/lib/theme/view.js:39:17)
    at /root/hexo/node_modules/hexo/lib/hexo/index.js:64:21
    at tryCatcher (/root/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at /root/hexo/node_modules/bluebird/js/release/method.js:15:34
    at RouteStream._read (/root/hexo/node_modules/hexo/lib/hexo/router.js:47:5)
    at RouteStream.Readable.read (_stream_readable.js:468:10)
    at resume_ (_stream_readable.js:982:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  path: '/root/hexo/themes/indigo/layout/archive.ejs'
}
ERROR ReferenceError: /root/hexo/themes/indigo/layout/archive.ejs:6
    4| }) %>
    5| <div class="container body-wrap fade">
 >> 6|     <%
    7|         var posts = [];
    8| 
    9|         page.posts.each(function(post){

_ is not defined
    at eval (/root/hexo/themes/indigo/layout/archive.ejs:22:25)
    at archive (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiled (/root/hexo/node_modules/hexo/lib/theme/view.js:136:50)
    at _View.render (/root/hexo/node_modules/hexo/lib/theme/view.js:39:17)
    at /root/hexo/node_modules/hexo/lib/hexo/index.js:64:21
    at tryCatcher (/root/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at /root/hexo/node_modules/bluebird/js/release/method.js:15:34
    at RouteStream._read (/root/hexo/node_modules/hexo/lib/hexo/router.js:47:5)
    at RouteStream.Readable.read (_stream_readable.js:468:10)
    at resume_ (_stream_readable.js:982:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  path: '/root/hexo/themes/indigo/layout/archive.ejs'
}
ERROR ReferenceError: /root/hexo/themes/indigo/layout/category.ejs:1
 >> 1| <%- partial('categories', {
    2|     title: theme.categories_title + ': ' + page.category
    3| }) %>
    4| 

/root/hexo/themes/indigo/layout/categories.ejs:1
 >> 1| <%- partial('_partial/header', {
    2|     title: locals.title || theme.categories_title,
    3|     hdClass: 'categories-header'
    4| }) %>

/root/hexo/themes/indigo/layout/_partial/header.ejs:40
    38|     </div>
    39| 
 >> 40|     <%- partial('tags-bar', {
    41|         type: hdClass.split('-')[0]
    42|     }) %>
    43| 

/root/hexo/themes/indigo/layout/_partial/tags-bar.ejs:7
    5|         <a href="<%= url_for('/' + type) %>" style="-webkit-order:-1;order:-1" class="tags-list-item waves-effect waves-button waves-light
    6|             <% if(path === type + '/index.html'){%> active<%}%>"><%= __('tag.all') %></a>
 >> 7|         <%
    8|             var options = [];
    9| 
    10|             (type === 'tags' ? site.tags : site.categories).each(function(o) {

_ is not defined
    at eval (/root/hexo/themes/indigo/layout/_partial/tags-bar.ejs:32:25)
    at tags-bar (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiledSync (/root/hexo/node_modules/hexo/lib/theme/view.js:132:24)
    at _View.renderSync (/root/hexo/node_modules/hexo/lib/theme/view.js:59:25)
    at Object.partial (/root/hexo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
    at eval (/root/hexo/themes/indigo/layout/_partial/header.ejs:55:17)
    at header (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiledSync (/root/hexo/node_modules/hexo/lib/theme/view.js:132:24)
    at _View.renderSync (/root/hexo/node_modules/hexo/lib/theme/view.js:59:25)
    at Object.partial (/root/hexo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
    at eval (/root/hexo/themes/indigo/layout/categories.ejs:8:17)
    at categories (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiledSync (/root/hexo/node_modules/hexo/lib/theme/view.js:132:24)
    at _View.renderSync (/root/hexo/node_modules/hexo/lib/theme/view.js:59:25)
    at Object.partial (/root/hexo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
    at eval (/root/hexo/themes/indigo/layout/category.ejs:8:17)
    at category (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiled (/root/hexo/node_modules/hexo/lib/theme/view.js:136:50)
    at _View.render (/root/hexo/node_modules/hexo/lib/theme/view.js:39:17)
    at /root/hexo/node_modules/hexo/lib/hexo/index.js:64:21
    at tryCatcher (/root/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at /root/hexo/node_modules/bluebird/js/release/method.js:15:34 {
  path: '/root/hexo/themes/indigo/layout/category.ejs'
}
ERROR ReferenceError: /root/hexo/themes/indigo/layout/tag.ejs:1
 >> 1| <%- partial('tags', {
    2|     title: theme.tags_title + ': '+ page.tag
    3| }) %>
    4| 

/root/hexo/themes/indigo/layout/tags.ejs:1
 >> 1| <%- partial('_partial/header', {
    2|     title: locals.title || theme.tags_title,
    3|     hdClass: 'tags-header'
    4| }) %>

/root/hexo/themes/indigo/layout/_partial/header.ejs:40
    38|     </div>
    39| 
 >> 40|     <%- partial('tags-bar', {
    41|         type: hdClass.split('-')[0]
    42|     }) %>
    43| 

/root/hexo/themes/indigo/layout/_partial/tags-bar.ejs:7
    5|         <a href="<%= url_for('/' + type) %>" style="-webkit-order:-1;order:-1" class="tags-list-item waves-effect waves-button waves-light
    6|             <% if(path === type + '/index.html'){%> active<%}%>"><%= __('tag.all') %></a>
 >> 7|         <%
    8|             var options = [];
    9| 
    10|             (type === 'tags' ? site.tags : site.categories).each(function(o) {

_ is not defined
    at eval (/root/hexo/themes/indigo/layout/_partial/tags-bar.ejs:32:25)
    at tags-bar (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiledSync (/root/hexo/node_modules/hexo/lib/theme/view.js:132:24)
    at _View.renderSync (/root/hexo/node_modules/hexo/lib/theme/view.js:59:25)
    at Object.partial (/root/hexo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
    at eval (/root/hexo/themes/indigo/layout/_partial/header.ejs:55:17)
    at header (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiledSync (/root/hexo/node_modules/hexo/lib/theme/view.js:132:24)
    at _View.renderSync (/root/hexo/node_modules/hexo/lib/theme/view.js:59:25)
    at Object.partial (/root/hexo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
    at eval (/root/hexo/themes/indigo/layout/tags.ejs:8:17)
    at tags (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiledSync (/root/hexo/node_modules/hexo/lib/theme/view.js:132:24)
    at _View.renderSync (/root/hexo/node_modules/hexo/lib/theme/view.js:59:25)
    at Object.partial (/root/hexo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
    at eval (/root/hexo/themes/indigo/layout/tag.ejs:8:17)
    at tag (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiled (/root/hexo/node_modules/hexo/lib/theme/view.js:136:50)
    at _View.render (/root/hexo/node_modules/hexo/lib/theme/view.js:39:17)
    at /root/hexo/node_modules/hexo/lib/hexo/index.js:64:21
    at tryCatcher (/root/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at /root/hexo/node_modules/bluebird/js/release/method.js:15:34 {
  path: '/root/hexo/themes/indigo/layout/tag.ejs'
}
ERROR {
  err: ReferenceError: /root/hexo/themes/indigo/layout/layout.ejs:3
      1| <!DOCTYPE html>
      2| <html>
   >> 3| <%- partial('_partial/head') %>
      4| <body>
      5|     <%- partial('_partial/loading') %>
      6|     <%- partial('_partial/menu') %>
  
  /root/hexo/themes/indigo/layout/_partial/head.ejs:37
      35|     <meta name="theme-color" content="<%=theme.color%>">
      36|     <% } %>
   >> 37|     <%
      38|         var keyWords = config.keywords;
      39|         if(page.tags){
      40|         keyWords = [];
  
  _ is not defined
      at eval (/root/hexo/themes/indigo/layout/_partial/head.ejs:91:9)
      at head (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
      at _View._compiledSync (/root/hexo/node_modules/hexo/lib/theme/view.js:132:24)
      at _View.renderSync (/root/hexo/node_modules/hexo/lib/theme/view.js:59:25)
      at Object.partial (/root/hexo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
      at eval (/root/hexo/themes/indigo/layout/layout.ejs:10:17)
      at layout (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
      at _View._compiled (/root/hexo/node_modules/hexo/lib/theme/view.js:136:50)
      at _View.render (/root/hexo/node_modules/hexo/lib/theme/view.js:39:17)
      at /root/hexo/node_modules/hexo/lib/theme/view.js:51:25
      at tryCatcher (/root/hexo/node_modules/bluebird/js/release/util.js:16:23)
      at Promise._settlePromiseFromHandler (/root/hexo/node_modules/bluebird/js/release/promise.js:547:31)
      at Promise._settlePromise (/root/hexo/node_modules/bluebird/js/release/promise.js:604:18)
      at Promise._settlePromise0 (/root/hexo/node_modules/bluebird/js/release/promise.js:649:10)
      at Promise._settlePromises (/root/hexo/node_modules/bluebird/js/release/promise.js:729:18)
      at _drainQueueStep (/root/hexo/node_modules/bluebird/js/release/async.js:93:12)
      at _drainQueue (/root/hexo/node_modules/bluebird/js/release/async.js:86:9)
      at Async._drainQueues (/root/hexo/node_modules/bluebird/js/release/async.js:102:5)
      at Immediate.Async.drainQueues [as _onImmediate] (/root/hexo/node_modules/bluebird/js/release/async.js:15:14)
      at processImmediate (internal/timers.js:456:21) {
    path: '/root/hexo/themes/indigo/layout/layout.ejs'
  }
} Render HTML failed: 2020/10/02/hello/index.html
ERROR {
  err: ReferenceError: /root/hexo/themes/indigo/layout/layout.ejs:6
      4| <body>
      5|     <%- partial('_partial/loading') %>
   >> 6|     <%- partial('_partial/menu') %>
      7|     <main id="main">
      8|         <%- body %>
      9|         <%- partial('_partial/footer') %>
  
  /root/hexo/themes/indigo/layout/_partial/menu.ejs:27
      25|             menuItem = theme.menu[i];
      26|           %>
   >> 27|             <li class="waves-block waves-effect<% if(isActive(menuItem)){ %> active<% } %>">
      28|               <a href="<%- url_for(menuItem.url) %>" <% if(menuItem.target){ %>target="_blank"<% } %> >
      29|                 <i class="icon icon-lg icon-<%= i %>"></i>
      30|                 <%=(menuItem.text || _.startCase(i)) %>
  
  _ is not defined
      at isActive (/root/hexo/themes/indigo/layout/_partial/menu.ejs:32:88)
      at eval (/root/hexo/themes/indigo/layout/_partial/menu.ejs:40:11)
      at menu (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
      at _View._compiledSync (/root/hexo/node_modules/hexo/lib/theme/view.js:132:24)
      at _View.renderSync (/root/hexo/node_modules/hexo/lib/theme/view.js:59:25)
      at Object.partial (/root/hexo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
      at eval (/root/hexo/themes/indigo/layout/layout.ejs:16:17)
      at layout (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
      at _View._compiled (/root/hexo/node_modules/hexo/lib/theme/view.js:136:50)
      at _View.render (/root/hexo/node_modules/hexo/lib/theme/view.js:39:17)
      at /root/hexo/node_modules/hexo/lib/theme/view.js:51:25
      at tryCatcher (/root/hexo/node_modules/bluebird/js/release/util.js:16:23)
      at Promise._settlePromiseFromHandler (/root/hexo/node_modules/bluebird/js/release/promise.js:547:31)
      at Promise._settlePromise (/root/hexo/node_modules/bluebird/js/release/promise.js:604:18)
      at Promise._settlePromise0 (/root/hexo/node_modules/bluebird/js/release/promise.js:649:10)
      at Promise._settlePromises (/root/hexo/node_modules/bluebird/js/release/promise.js:729:18)
      at _drainQueueStep (/root/hexo/node_modules/bluebird/js/release/async.js:93:12)
      at _drainQueue (/root/hexo/node_modules/bluebird/js/release/async.js:86:9)
      at Async._drainQueues (/root/hexo/node_modules/bluebird/js/release/async.js:102:5)
      at Immediate.Async.drainQueues [as _onImmediate] (/root/hexo/node_modules/bluebird/js/release/async.js:15:14)
      at processImmediate (internal/timers.js:456:21) {
    path: '/root/hexo/themes/indigo/layout/layout.ejs'
  }
} Render HTML failed: index.html
ERROR ReferenceError: /root/hexo/themes/indigo/layout/layout.ejs:3
    1| <!DOCTYPE html>
    2| <html>
 >> 3| <%- partial('_partial/head') %>
    4| <body>
    5|     <%- partial('_partial/loading') %>
    6|     <%- partial('_partial/menu') %>

/root/hexo/themes/indigo/layout/_partial/head.ejs:37
    35|     <meta name="theme-color" content="<%=theme.color%>">
    36|     <% } %>
 >> 37|     <%
    38|         var keyWords = config.keywords;
    39|         if(page.tags){
    40|         keyWords = [];

_ is not defined
    at eval (/root/hexo/themes/indigo/layout/_partial/head.ejs:91:9)
    at head (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiledSync (/root/hexo/node_modules/hexo/lib/theme/view.js:132:24)
    at _View.renderSync (/root/hexo/node_modules/hexo/lib/theme/view.js:59:25)
    at Object.partial (/root/hexo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
    at eval (/root/hexo/themes/indigo/layout/layout.ejs:10:17)
    at layout (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiled (/root/hexo/node_modules/hexo/lib/theme/view.js:136:50)
    at _View.render (/root/hexo/node_modules/hexo/lib/theme/view.js:39:17)
    at /root/hexo/node_modules/hexo/lib/theme/view.js:51:25
    at tryCatcher (/root/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/root/hexo/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/root/hexo/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/root/hexo/node_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/root/hexo/node_modules/bluebird/js/release/promise.js:729:18)
    at _drainQueueStep (/root/hexo/node_modules/bluebird/js/release/async.js:93:12)
    at _drainQueue (/root/hexo/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/root/hexo/node_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/root/hexo/node_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (internal/timers.js:456:21) {
  path: '/root/hexo/themes/indigo/layout/layout.ejs'
}
ERROR ReferenceError: /root/hexo/themes/indigo/layout/layout.ejs:6
    4| <body>
    5|     <%- partial('_partial/loading') %>
 >> 6|     <%- partial('_partial/menu') %>
    7|     <main id="main">
    8|         <%- body %>
    9|         <%- partial('_partial/footer') %>

/root/hexo/themes/indigo/layout/_partial/menu.ejs:27
    25|             menuItem = theme.menu[i];
    26|           %>
 >> 27|             <li class="waves-block waves-effect<% if(isActive(menuItem)){ %> active<% } %>">
    28|               <a href="<%- url_for(menuItem.url) %>" <% if(menuItem.target){ %>target="_blank"<% } %> >
    29|                 <i class="icon icon-lg icon-<%= i %>"></i>
    30|                 <%=(menuItem.text || _.startCase(i)) %>

_ is not defined
    at isActive (/root/hexo/themes/indigo/layout/_partial/menu.ejs:32:88)
    at eval (/root/hexo/themes/indigo/layout/_partial/menu.ejs:40:11)
    at menu (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiledSync (/root/hexo/node_modules/hexo/lib/theme/view.js:132:24)
    at _View.renderSync (/root/hexo/node_modules/hexo/lib/theme/view.js:59:25)
    at Object.partial (/root/hexo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
    at eval (/root/hexo/themes/indigo/layout/layout.ejs:16:17)
    at layout (/root/hexo/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiled (/root/hexo/node_modules/hexo/lib/theme/view.js:136:50)
    at _View.render (/root/hexo/node_modules/hexo/lib/theme/view.js:39:17)
    at /root/hexo/node_modules/hexo/lib/theme/view.js:51:25
    at tryCatcher (/root/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/root/hexo/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/root/hexo/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/root/hexo/node_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/root/hexo/node_modules/bluebird/js/release/promise.js:729:18)
    at _drainQueueStep (/root/hexo/node_modules/bluebird/js/release/async.js:93:12)
    at _drainQueue (/root/hexo/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/root/hexo/node_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/root/hexo/node_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (internal/timers.js:456:21) {
  path: '/root/hexo/themes/indigo/layout/layout.ejs'
}
INFO  Generated: categories/index.html
INFO  Generated: tags/index.html
INFO  Generated: archives/index.html
INFO  Generated: archives/2020/index.html
INFO  Generated: archives/2020/10/index.html
INFO  Generated: categories/other/index.html
INFO  Generated: tags/other/index.html
INFO  Generated: atom.xml
INFO  Generated: content.json
INFO  Generated: index.html
INFO  Generated: img/alipay.jpg
INFO  Generated: img/avatar.jpg
INFO  Generated: img/cc.png
INFO  Generated: img/img-err.png
INFO  Generated: img/img-loading.png
INFO  Generated: img/wechat.jpg
INFO  Generated: js/main.min.js
INFO  Generated: img/brand.jpg
INFO  Generated: js/search.js
INFO  Generated: js/search.min.js
INFO  Generated: 2020/10/02/hello/index.html
INFO  Generated: css/fonts/roboto/Roboto-Bold.eot
INFO  Generated: js/main.js
INFO  Generated: css/fonts/fontawesome/fontawesome-webfont.woff2
INFO  Generated: css/fonts/roboto/Roboto-Bold.woff
INFO  Generated: css/fonts/roboto/Roboto-Light.eot
INFO  Generated: css/fonts/roboto/Roboto-Medium.eot
INFO  Generated: css/fonts/roboto/Roboto-Regular.eot
INFO  Generated: css/fonts/roboto/Roboto-Thin.eot
INFO  Generated: css/fonts/roboto/Roboto-Bold.woff2
INFO  Generated: css/fonts/roboto/Roboto-Thin.woff2
INFO  Generated: css/fonts/roboto/Roboto-Bold.ttf
INFO  Generated: css/fonts/roboto/Roboto-Light.woff
INFO  Generated: css/fonts/roboto/Roboto-Light.woff2
INFO  Generated: css/fonts/roboto/Roboto-Medium.woff
INFO  Generated: css/fonts/roboto/Roboto-Medium.woff2
INFO  Generated: css/fonts/roboto/Roboto-Regular.woff
INFO  Generated: css/fonts/roboto/Roboto-Regular.woff2
INFO  Generated: css/fonts/roboto/Roboto-Thin.woff
INFO  Generated: css/fonts/fontawesome/FontAwesome.otf
INFO  Generated: css/fonts/roboto/Roboto-Light.ttf
INFO  Generated: css/fonts/roboto/Roboto-Medium.ttf
INFO  Generated: css/fonts/roboto/Roboto-Regular.ttf
INFO  Generated: css/fonts/roboto/Roboto-Thin.ttf
INFO  Generated: css/fonts/fontawesome/fontawesome-webfont.woff
INFO  Generated: css/fonts/fontawesome/fontawesome-webfont.ttf
INFO  Generated: css/style.css
INFO  Generated: css/fonts/fontawesome/fontawesome-webfont.eot
INFO  Generated: css/fonts/fontawesome/fontawesome-webfont.svg
INFO  49 files generated in 1.06 s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions