https://github.com/bolnh/hexo-theme-material

的确超级帅,可能是最酷的主题了!!!
但是,你直接安装最新版1.5.6
hexo s后肯定报错
(我暂时也没搞明白怎改对…)
我的报错比较特别,网上搜不到相关的问题…
心情极度失落
复制并重命名了配置文件,试过下载source code压缩包,npm安装,cnpm安装,照issue某个方法修改一点配置文件,但就是会出现下面的报错
ERROR Plugin load failed: hexo-material
Error: EISDIR: illegal operation on a directory, read
INFO Start processing
INFO Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.
ERROR Render HTML failed: index.html
TypeError: F:\Project\Github\hexo - 副本 (6)\themes\material\layout\layout.ejs:3
1|
2| <html style="display: none;" <% if(config.language !== null) {
%>lang="<%- config.language.substring(0,2) %>"<% } %>>
3| <%- partial('_partial/head') %>
4|
5| <% if(page.layout === 'gallery') {
%>
6|
F:\Project\Github\hexo - 副本 (6)\themes\material\layout_partial\head.ejs:22
20|
21|
22| <%- partial('_widget/dnsprefetch') %>
23|
24|
25|
F:\Project\Github\hexo - 副本 (6)\themes\material\layout_widget\dnsprefetch.ejs:2
1|
2| <% if(theme.vendors.materialcdn) {
%>
3|
4| <% } %>
5| <% if( (theme.leancloud.enable ===

本文详细记录了在Hexo中安装和使用Material主题时遇到的错误及解决方法,指出直接安装最新版本可能导致的问题,并提供了回退到稳定版本的建议。
最低0.47元/天 解锁文章
2315

被折叠的 条评论
为什么被折叠?



