文档


一、

Hexo启动页面显示extends includes/layout.pug block content include includes/recent-posts.pug include,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

Hexo更改主题后启动服务器,界面显如下字符:

extends includes/layout.pug block content include includes/recent-posts.pug include includes/partial

解决方案:

执行如下命令

npm install --save hexo-renderer-jade hexo-generator-feed hexo-generator-sitemap hexo-browsersync hexo-generator-archive

清除缓存
hexo clean

生成静态文件即可
hexo g

二、

Hexo+Butterfly博客报错extends includes/layout.pug block content include ./includes/mixins/post…

问题
Hexo主题Butterfly启动后报错

extends includes/layout.pug block content include ./includes/mixins/post-ui
.pug #recent-posts.recent-posts +postUI include includes/pagination.pug
场景:
更换新主题Butterfly

原因:
没有 pug 以及 stylus 的渲染器

解决方案

1
2
npm install hexo-renderer-pug hexo-renderer-stylus --save
npm install hexo-deployer-git --save / yarn add hexo-deployer-git

再次依次执行

1
2
3
hexo clean
hexo g
hexo s -p 4000