首页 > 其他 > 详细

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

时间:2021-02-20 16:05:51      阅读:48      评论: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

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

原文:https://www.cnblogs.com/Xieyingpeng/p/14421226.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!