hexo new “postName” #新建文章 hexo new page “pageName” #新建页面 hexo generate #生成静态页面至public目录 hexo server #开启预览访问端口(默认端口4000,’ctrl + c’关闭server) hexo deploy #将.deploy目录部署到GitHub
1 2 3
hexo new [layout] <title> hexo new photo "My Gallery" hexo new "Hello World" --lang tw
变量 描述
1 2 3 4 5 6 7 8 9 10 11 12 13
layout 布局 title 标题 date 文件建立日期 title: 使用Hexo搭建个人博客 layout: post date: 2014-03-03 19:07:43 comments: true categories: Blog tags: [Hexo] keywords: Hexo, Blog description: 生命在于折腾,又把博客折腾到Hexo了。给Hexo点赞。 模版(Scaffold) hexo new photo "My Gallery"
变量 描述 layout 布局 title 标题 date 文件建立日期 设置文章摘要 以上是文章摘要 以下是余下全文
写作
1 2 3 4 5 6 7 8 9 10 11 12 13 14
hexo new page <title> hexo new post <title>
变量 描述 :title 标题 :year 建立的年份(4 位数) :month 建立的月份(2 位数) :i_month 建立的月份(去掉开头的零) :day 建立的日期(2 位数) :i_day 建立的日期(去掉开头的零) 推送到服务器上 hexo n #写文章 hexo g #生成 hexo d #部署 #可与hexo g合并为 hexo d -g