VICTORCHENEY

INNERPEACE

Hexo相关操作

文档:https://hexo.io/zh-cn/docs/commands

Hacker主题:https://github.com/CodeDaraW/Hacker

多设备方案:https://www.zhihu.com/question/21193762

Quick Start

Create a new post

1
$ hexo new "My New Post"



More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

模版(Scaffold)

在新建文章时,Hexo 会根据 scaffolds 文件夹内相对应的文件来建立文件,例如:

$ hexo new photo "My Gallery"

在执行这行指令时,Hexo 会尝试在 scaffolds 文件夹中寻找 photo.md,并根据其内容建立文章,以下是您可以在模版中使用的变量:

变量    描述  
layout  布局  
title   标题  
date    文件建立日期