0%

Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

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

草稿功能

建立文章草稿

1
$ hexo new draft <title>

Hexo 提供 draft 机制,它的原理是新文章将建立在 source/_drafts 目录下, hexo generate 并不会将其编译到 public 目录下, hexo deploy 也不会部署。

本地预览草稿

1
$ hexo S --draft

将草稿发布为正式文章

1
$ hexo P <filename>

其中 <filename> 为不包含 md 后缀的文章名称,将文章从 source/_drafts 移动到 source/_posts

若想将正式文章转为为草稿,手动将文章从 source/_posts 目录移动到 source/_drafts 目录即可。

主体配置

首页展示缩略内容

在markdown 文章中使用 <!-- more -->来分割需要点击 更多才能看到的内容