hexo github pages 首页不展示,出现代码怎么办

时间:2021-02-22 11:51:41   收藏:0   阅读:0

1.现象描述:

然后打开页面显示的是:

<%- partial(‘_partial/head‘) %> <%- partial(‘_partial/header‘) %> <%- body %> <% if (theme.sidebar && theme.sidebar !== ‘bottom‘){

 %> <%- partial(‘_partial/sidebar‘) %> <% } %> <%- partial(‘_partial/footer‘) %> <%- partial(‘_partial/mobile-nav‘) %
> <%- partial(‘_partial/after-footer‘) %>

2.原因:

Hexo无法解析模板文件

npm install hexo-renderer-ejs --save
npm install hexo-renderer-stylus --save
npm install hexo-renderer-marked --save

(1)npm install hexo-renderer-ejs --save

技术图片

(2)npm install hexo-renderer-stylus --save

技术图片

(3)npm install hexo-renderer-marked --save

技术图片

3.个人联系方式:

qq:2061302791

微信:xie2061302791

电话:15284524485

个人网站:https://xieyingpeng.mysxl.cn/

Github:https://github.com/xieyingpeng/

博客园:https://www.cnblogs.com/Xieyingpengz

知乎:https://www.zhihu.com/people/nan-qiao-12-73

gitee:https://gitee.com/xie-yingpeng/project-1.git

bilibili:https://space.bilibili.com/617198338?share_medium=android&share_source=copy_link&bbid=XY2BDF522C748A159BE7DD354D6DFFB963728&ts=1612520115798

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!