Hexo Butterfly 主题重新部署后问题及解决办法

安装 Hexo

全局安装

  • 管理员身份运行CMD,执行Hexo全局安装命令
1
cnpm install hexo-cli -g

初始化博客

1
hexo init

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

  • 下载安装模块
1
npm install --save hexo-renderer-jade hexo-generator-feed hexo-generator-sitemap hexo-browsersync hexo-generator-archive

配置Hexo

totalcount is not a function 问题

  • 下载安装模块
1
npm install hexo-renderer-pug hexo-renderer-stylus --save
1
npm i --save hexo-wordcount

hexo d 部署失败问题

  • 下载安装模块
1
npm install hexo-deployer-git --save

搜索模块

1
npm install hexo-generator-search --save