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

本文最后更新于 2024年3月31日 上午

喜欢用hexo建站的朋友肯定听说过butterfly这个精美的主题,但是在实际使用的时候会报错:

1
2
extends includes/layout.pug block content include ./includes/mixins/post-ui
.pug #recent-posts.recent-posts +postUI include includes/pagination.pug

这是因为没有 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