准备
- git 安装 (http://git-scm.com)
- nodejs 安装 (https://nodejs.org)
按照官网安装即可。
配置
初始化blog1$ hexo init cn-dream
下载 next 主题123$ cd cn-dream/themes/$ git clone https://github.com/iissnan/hexo-theme-next.git$ cd hexo-theme-next
配置cn-dream/_config.yml
由于 next主题 使用的配置是 zh-Hans.yml配置文件,修改如下行12lang: zh-Hanstheme: hexo-theme-next
配置cn-dream/theme/hexo-theme-next/_config.yml
配置 favicon.ico,以及用户头像,复制对应文件到cn-dream/source目录12favicon: /favicon.icoavatar: /uploads/avatar.jpg
安装markdown绘图插件mermaid
|
|
然后,在cn-dream/theme/hexo-theme-next/layout/_custom/header.swing 加入123<script src="//cdn.bootcss.com/mermaid/6.0.0/mermaid.min.js"></script><link rel="stylesheet" type="text/css" href="https://cdn.bootcss.com/mermaid/6.0.0/mermaid.min.css">
参考