Comments (13)
可以,我稍后更新一下
from hexo-theme-3-hexo.
已增加:更新主题后,
_config.yml
中有一个字段 blog_path
配置为 /note
如下:
blog_path: /note
from hexo-theme-3-hexo.
OK,谢谢
from hexo-theme-3-hexo.
是不是影响到其它的代码了,怎么现在index.html是空的。
from hexo-theme-3-hexo.
cat public/index.html 什么都没有
from hexo-theme-3-hexo.
执行 hexo g
有报错吗?
from hexo-theme-3-hexo.
/tmp/myblog/blog # hexo g
INFO Start processing
INFO Files loaded in 133 ms
ERROR /tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/post.ejs:3
1|
2|
3| <%- partial('_partial/header') %>
4|
5|
6|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/header.ejs:6
4|
5|
6| <%- fragment_cache('meta', function(){
7| return partial('_partial/meta');
8| }) %>
9|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/meta.ejs:9
7|
8| <% } %>
9| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/style.css" rel="stylesheet">
10| <% if(theme.highlight && theme.highlight.on && theme.highlight.theme){ %>
11| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/hl_theme/<%=theme.highlight.theme %>.css" rel="stylesheet">
12| <%}%>
Cannot read property 'lastIndexOf' of undefined
TypeError: /tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/post.ejs:3
1|
2|
3| <%- partial('_partial/header') %>
4|
5|
6|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/header.ejs:6
4|
5|
6| <%- fragment_cache('meta', function(){
7| return partial('_partial/meta');
8| }) %>
9|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/meta.ejs:9
7|
8| <% } %>
9| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/style.css" rel="stylesheet">
10| <% if(theme.highlight && theme.highlight.on && theme.highlight.theme){ %>
11| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/hl_theme/<%=theme.highlight.theme %>.css" rel="stylesheet">
12| <%}%>
Cannot read property 'lastIndexOf' of undefined
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :34:41)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:121:22)
at Theme._View.View.View.renderSync (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:49:23)
at Object.partial (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/partial.js:38:15)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :35:14)
at Object.fragmentCache (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/fragment_cache.js:9:32)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :34:17)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:121:22)
at Theme._View.View.View.renderSync (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:49:23)
at Object.partial (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/partial.js:38:15)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :11:17)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiled.locals [as _compiled] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:125:48)
at Theme._View.View.View.render (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:30:15)
at route.set (/tmp/myblog/blog/node_modules/hexo/lib/hexo/index.js:394:29)
at tryCatcher (/tmp/myblog/blog/node_modules/bluebird/js/release/util.js:16:23)
at /tmp/myblog/blog/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/tmp/myblog/blog/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (stream_readable.js:458:10)
at resume (_stream_readable.js:897:12)
ERROR /tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/post.ejs:3
1|
2|
3| <%- partial('_partial/header') %>
4|
5|
6|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/header.ejs:6
4|
5|
6| <%- fragment_cache('meta', function(){
7| return partial('_partial/meta');
8| }) %>
9|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/meta.ejs:9
7|
8| <% } %>
9| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/style.css" rel="stylesheet">
10| <% if(theme.highlight && theme.highlight.on && theme.highlight.theme){ %>
11| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/hl_theme/<%=theme.highlight.theme %>.css" rel="stylesheet">
12| <%}%>
Cannot read property 'lastIndexOf' of undefined
TypeError: /tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/post.ejs:3
1|
2|
3| <%- partial('_partial/header') %>
4|
5|
6|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/header.ejs:6
4|
5|
6| <%- fragment_cache('meta', function(){
7| return partial('_partial/meta');
8| }) %>
9|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/meta.ejs:9
7|
8| <% } %>
9| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/style.css" rel="stylesheet">
10| <% if(theme.highlight && theme.highlight.on && theme.highlight.theme){ %>
11| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/hl_theme/<%=theme.highlight.theme %>.css" rel="stylesheet">
12| <%}%>
Cannot read property 'lastIndexOf' of undefined
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :34:41)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:121:22)
at Theme._View.View.View.renderSync (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:49:23)
at Object.partial (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/partial.js:38:15)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :35:14)
at Object.fragmentCache (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/fragment_cache.js:9:32)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :34:17)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:121:22)
at Theme._View.View.View.renderSync (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:49:23)
at Object.partial (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/partial.js:38:15)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :11:17)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiled.locals [as _compiled] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:125:48)
at Theme._View.View.View.render (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:30:15)
at route.set (/tmp/myblog/blog/node_modules/hexo/lib/hexo/index.js:394:29)
at tryCatcher (/tmp/myblog/blog/node_modules/bluebird/js/release/util.js:16:23)
at /tmp/myblog/blog/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/tmp/myblog/blog/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (stream_readable.js:458:10)
at resume (_stream_readable.js:897:12)
ERROR /tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/index.ejs:3
1|
2|
3| <%- partial('_partial/header') %>
4|
5|
6|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/header.ejs:6
4|
5|
6| <%- fragment_cache('meta', function(){
7| return partial('_partial/meta');
8| }) %>
9|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/meta.ejs:9
7|
8| <% } %>
9| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/style.css" rel="stylesheet">
10| <% if(theme.highlight && theme.highlight.on && theme.highlight.theme){ %>
11| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/hl_theme/<%=theme.highlight.theme %>.css" rel="stylesheet">
12| <%}%>
Cannot read property 'lastIndexOf' of undefined
TypeError: /tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/index.ejs:3
1|
2|
3| <%- partial('_partial/header') %>
4|
5|
6|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/header.ejs:6
4|
5|
6| <%- fragment_cache('meta', function(){
7| return partial('_partial/meta');
8| }) %>
9|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/meta.ejs:9
7|
8| <% } %>
9| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/style.css" rel="stylesheet">
10| <% if(theme.highlight && theme.highlight.on && theme.highlight.theme){ %>
11| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/hl_theme/<%=theme.highlight.theme %>.css" rel="stylesheet">
12| <%}%>
Cannot read property 'lastIndexOf' of undefined
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :34:41)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:121:22)
at Theme._View.View.View.renderSync (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:49:23)
at Object.partial (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/partial.js:38:15)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :35:14)
at Object.fragmentCache (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/fragment_cache.js:9:32)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :34:17)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:121:22)
at Theme._View.View.View.renderSync (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:49:23)
at Object.partial (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/partial.js:38:15)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :11:17)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiled.locals [as _compiled] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:125:48)
at Theme._View.View.View.render (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:30:15)
at route.set (/tmp/myblog/blog/node_modules/hexo/lib/hexo/index.js:394:29)
at tryCatcher (/tmp/myblog/blog/node_modules/bluebird/js/release/util.js:16:23)
at /tmp/myblog/blog/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/tmp/myblog/blog/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (stream_readable.js:458:10)
at resume (_stream_readable.js:897:12)
ERROR /tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/index.ejs:3
1|
2|
3| <%- partial('_partial/header') %>
4|
5|
6|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/header.ejs:6
4|
5|
6| <%- fragment_cache('meta', function(){
7| return partial('_partial/meta');
8| }) %>
9|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/meta.ejs:9
7|
8| <% } %>
9| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/style.css" rel="stylesheet">
10| <% if(theme.highlight && theme.highlight.on && theme.highlight.theme){ %>
11| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/hl_theme/<%=theme.highlight.theme %>.css" rel="stylesheet">
12| <%}%>
Cannot read property 'lastIndexOf' of undefined
TypeError: /tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/index.ejs:3
1|
2|
3| <%- partial('_partial/header') %>
4|
5|
6|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/header.ejs:6
4|
5|
6| <%- fragment_cache('meta', function(){
7| return partial('_partial/meta');
8| }) %>
9|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/meta.ejs:9
7|
8| <% } %>
9| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/style.css" rel="stylesheet">
10| <% if(theme.highlight && theme.highlight.on && theme.highlight.theme){ %>
11| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/hl_theme/<%=theme.highlight.theme %>.css" rel="stylesheet">
12| <%}%>
Cannot read property 'lastIndexOf' of undefined
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :34:41)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:121:22)
at Theme._View.View.View.renderSync (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:49:23)
at Object.partial (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/partial.js:38:15)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :35:14)
at Object.fragmentCache (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/fragment_cache.js:9:32)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :34:17)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:121:22)
at Theme._View.View.View.renderSync (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:49:23)
at Object.partial (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/partial.js:38:15)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :11:17)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiled.locals [as _compiled] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:125:48)
at Theme._View.View.View.render (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:30:15)
at route.set (/tmp/myblog/blog/node_modules/hexo/lib/hexo/index.js:394:29)
at tryCatcher (/tmp/myblog/blog/node_modules/bluebird/js/release/util.js:16:23)
at /tmp/myblog/blog/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/tmp/myblog/blog/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (stream_readable.js:458:10)
at resume (_stream_readable.js:897:12)
ERROR /tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/index.ejs:3
1|
2|
3| <%- partial('_partial/header') %>
4|
5|
6|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/header.ejs:6
4|
5|
6| <%- fragment_cache('meta', function(){
7| return partial('_partial/meta');
8| }) %>
9|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/meta.ejs:9
7|
8| <% } %>
9| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/style.css" rel="stylesheet">
10| <% if(theme.highlight && theme.highlight.on && theme.highlight.theme){ %>
11| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/hl_theme/<%=theme.highlight.theme %>.css" rel="stylesheet">
12| <%}%>
Cannot read property 'lastIndexOf' of undefined
TypeError: /tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/index.ejs:3
1|
2|
3| <%- partial('_partial/header') %>
4|
5|
6|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/header.ejs:6
4|
5|
6| <%- fragment_cache('meta', function(){
7| return partial('_partial/meta');
8| }) %>
9|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/meta.ejs:9
7|
8| <% } %>
9| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/style.css" rel="stylesheet">
10| <% if(theme.highlight && theme.highlight.on && theme.highlight.theme){ %>
11| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/hl_theme/<%=theme.highlight.theme %>.css" rel="stylesheet">
12| <%}%>
Cannot read property 'lastIndexOf' of undefined
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :34:41)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:121:22)
at Theme._View.View.View.renderSync (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:49:23)
at Object.partial (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/partial.js:38:15)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :35:14)
at Object.fragmentCache (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/fragment_cache.js:9:32)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :34:17)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:121:22)
at Theme._View.View.View.renderSync (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:49:23)
at Object.partial (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/partial.js:38:15)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :11:17)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiled.locals [as _compiled] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:125:48)
at Theme._View.View.View.render (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:30:15)
at route.set (/tmp/myblog/blog/node_modules/hexo/lib/hexo/index.js:394:29)
at tryCatcher (/tmp/myblog/blog/node_modules/bluebird/js/release/util.js:16:23)
at /tmp/myblog/blog/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/tmp/myblog/blog/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (stream_readable.js:458:10)
at resume (_stream_readable.js:897:12)
ERROR /tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/index.ejs:3
1|
2|
3| <%- partial('_partial/header') %>
4|
5|
6|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/header.ejs:6
4|
5|
6| <%- fragment_cache('meta', function(){
7| return partial('_partial/meta');
8| }) %>
9|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/meta.ejs:9
7|
8| <% } %>
9| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/style.css" rel="stylesheet">
10| <% if(theme.highlight && theme.highlight.on && theme.highlight.theme){ %>
11| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/hl_theme/<%=theme.highlight.theme %>.css" rel="stylesheet">
12| <%}%>
Cannot read property 'lastIndexOf' of undefined
TypeError: /tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/index.ejs:3
1|
2|
3| <%- partial('_partial/header') %>
4|
5|
6|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/header.ejs:6
4|
5|
6| <%- fragment_cache('meta', function(){
7| return partial('_partial/meta');
8| }) %>
9|
/tmp/myblog/blog/themes/hexo-theme-3-hexo/layout/_partial/meta.ejs:9
7|
8| <% } %>
9| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/style.css" rel="stylesheet">
10| <% if(theme.highlight && theme.highlight.on && theme.highlight.theme){ %>
11| <link href="<%=theme.blog_path.lastIndexOf("/") === theme.blog_path.length-1?theme.blog_path.slice(0, theme.blog_path.length-1):theme.blog_path %>/css/hl_theme/<%=theme.highlight.theme %>.css" rel="stylesheet">
12| <%}%>
Cannot read property 'lastIndexOf' of undefined
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :34:41)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:121:22)
at Theme._View.View.View.renderSync (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:49:23)
at Object.partial (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/partial.js:38:15)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :35:14)
at Object.fragmentCache (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/fragment_cache.js:9:32)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :34:17)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:121:22)
at Theme._View.View.View.renderSync (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:49:23)
at Object.partial (/tmp/myblog/blog/node_modules/hexo/lib/plugins/helper/partial.js:38:15)
at eval (eval at compile (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:618:12), :11:17)
at returnedFn (/tmp/myblog/blog/node_modules/ejs/lib/ejs.js:653:17)
at Theme._View.View._compiled.locals [as _compiled] (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:125:48)
at Theme._View.View.View.render (/tmp/myblog/blog/node_modules/hexo/lib/theme/view.js:30:15)
at route.set (/tmp/myblog/blog/node_modules/hexo/lib/hexo/index.js:394:29)
at tryCatcher (/tmp/myblog/blog/node_modules/bluebird/js/release/util.js:16:23)
at /tmp/myblog/blog/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/tmp/myblog/blog/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (stream_readable.js:458:10)
at resume (_stream_readable.js:897:12)
INFO 0 files generated in 78 ms
from hexo-theme-3-hexo.
主题中的 blog_path: /
你配置的什么?
from hexo-theme-3-hexo.
不好意思,才发现,之前不小心注释了导致的
from hexo-theme-3-hexo.
解注后正常了
from hexo-theme-3-hexo.
这个也是我没有做好兼容,最新的代码已经做了优化,没有配置此参数也不会有问题。
from hexo-theme-3-hexo.
感谢你的快速解决,谢谢!
from hexo-theme-3-hexo.
举手之劳
from hexo-theme-3-hexo.
Related Issues (20)
- 谢谢分享 HOT 2
- 你的博客 现在点击分类 好像没反应 HOT 4
- Bug 分类如果是纯数字 点击该分类 会报错 并且分类筛选无效 HOT 2
- 请教:gitalk会重复创建issue HOT 1
- 左侧菜单栏调大宽度后,选中时不能预期显示
- 主题可以支持暗黑模式吗?夜晚护眼模式 HOT 1
- 图片显示问题 HOT 2
- 如何置顶? HOT 1
- md语法 HOT 2
- 禁止渲染html代码 HOT 1
- 如何移植您主题中的搜索功能呢? HOT 5
- github page主题无法加载 HOT 2
- 怎么根据categories 排序 HOT 2
- 关于图片显示方式问题 HOT 4
- Not loading css, js and other resources in hexo generate HOT 1
- 可否添加目录自动对标题排序号的功能 HOT 1
- 关于主题使用注脚问题
- 更换CDN加速 HOT 2
- 为什么我使能3-hexo后文章显示很丑 HOT 1
- utterances
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-theme-3-hexo.