hexo install
安装brew
1
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
安装git
安装node
安装hexo
初始化hexo
开启hexo服务器
进入主页:http://localhost:4000/
Quick Start
Create a new post
1
| $ hexo new "My New Post"
|
More info: Writing
Run server
More info: Server
Generate static files
More info: Generating
Deploy to remote sites
More info: Deployment
ERROR
ERROR Deployer not found: git
执行以下命令:
1
| npm install hexo-deployer-git --save
|
extends includes/layout.pug block content include includes/recent-posts.pug include includes/partial
执行以下命令:
1
| npm install --save hexo-renderer-jade hexo-generator-feed hexo-generator-sitemap hexo-browsersync hexo-generator-archive
|
增加标题数字
1 2 3 4 5 6
| heading_index: enable: true index_styles: "{1} {1} {1} {1} {1} {1}" connector: "." global_prefix: "" global_suffix: ". "
|
卸载hexo
1 2
| npm uninstall hexo-cli -g
|