npm install hexo -g
安裝
npm update hexo -g
公升級
hexo init
初始化
hexo n "我的部落格"
orhexo new "我的部落格"
新建文章
hexo p
orhexo publish
hexo g
orhexo generate
生成html至public目錄
hexo s
orhexo server
啟動服務(預設埠4000,'ctrl + c'關閉server)
hexo d
orhexo deploy
部署
hexo server
hexo 會監視檔案變動並自動更新,您無須重啟伺服器。
hexo server -s
靜態模式
hexo server -p 5000
更改埠
hexo server -i 192.168.1.1
自定義 ip
hexo clean
清除快取 網頁正常情況下可以忽略此條命令
hexo new "postname"
新建文章
hexo new page "pagename"
新建頁面
hexo new draft "pagename"
新建草稿文章
各變數的含義
變數描述
layout
布局
title
標題
date
件建立日期
title
使用hexo搭建個人部落格
layout
post
date
2014-03-03 19:07:43
comments
true
categories
blog
[hexo]
keywords
hexo, blog
description
描述
hexo常用命令
hexo一些常用命令,簡寫等。npm install hexo g 安裝 npm update hexo g 公升級 hexo init 初始化 複製 hexo n 我的部落格 hexo new 我的部落格 新建文章hexo p hexo publish 發布草稿hexo g hexo genera...
Hexo 常用命令
櫻花?npm install hexo g 安裝hexo npm update hexo g 公升級 hexo init 初始化部落格 hexo n 我的部落格 hexo new 我的部落格 新建文章 hexo g hexo generate 生成 hexo s hexo server 啟動服務預覽...
hexo常用命令
部署 hexo clean hexo generate hexo deploy本地 hexo g 生成 hexo s 啟動本地服務,進行文章預覽除錯常用 hexo new postname 新建文章 hexo new page pagename 新建頁面 hexo generate 生成靜態頁面至p...