安装
git && node
npm install -g hexo-cli
hexo init blog && cd blog && npm install
新建文章
hexo new "new article"
hexo new [layout] <title>
layout默认为 post
| 布局 | 路径 |
| —— | —— |
| post | source/_posts |
| page | source |
| draft | source/_drafts |
草稿
hexo publish [layout] <title>
Front-matter
Front-matter 是文件最上方以 — 分隔的区域,用于指定个别文件的变量
1 |
|
本地查看
hexo g || hexo generate
hexo s || hexo server
localhost:4000
hexo clean && hexo g && hexo s
发布
hexo clean && hexo g && hexo d
评论插件支持
多说
畅言
来必力