安装
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
2
3
4
5
6
7
8
9
10
title: Hello World
date: 2013/7/13 20:46:25
updated: 2019/5/7 20:12:22
categories:
- demo
tags:
- demo
- hexo
本地查看
hexo g || hexo generate
hexo s || hexo server
localhost:4000
hexo clean && hexo g && hexo s
发布
hexo clean && hexo g && hexo d
评论插件支持
多说
畅言
来必力
增加搜索功能
插件
字数统计,次数统计
广告
阿里云活动云服务器低至1核-2G-1M,1年89元,3年229。
2核-4G-3M,2年469元,3年799。
2核-8G-5M,3年899元。
新老客户都有优惠 点击查看详情/购买
腾讯云现在活动
1核 2G 1M 88一年
2核 4G 5M 3年只要998。 点击查看详情/购买