Hello Hexo 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

如果你使用的是 Hexo Matery 主题的话,你可以参考系列博文:

Hello, Hexo Matery World


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
2
$ hexo clean
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment


Begin To Edit Article

博文编写分为两步:

  1. 设置博文的 Front-Matter
  2. 创作博文内容

Doc Front-Matter Policy

Front-matter is a block of YAML or JSON at the beginning of the file that is used to configure settings for your writings. Front-matter is terminated by three dashes when written in YAML or three semicolons when written in JSON.

YAML

1
2
3
4
---
title: Hello World
date: 2013/7/13 20:46:25
---

JSON

1
2
3
"title": "Hello World",
"date": "2013/7/13 20:46:25"
;;;

Front-matter 选项中的所有内容均为 非必填 的。推荐至少填写 titledate 的值。

Setting Description Default
title Title Filename (posts only)
date Published date File created date
updated Updated date File updated date
tags Tags (Not available for pages)
categories Categories (Not available for pages)
toc Article Contents false

以下为文章的 Front-matter 示例。

The Simple Demo

1
2
3
4
---
title: Hello Hexo
date: 2017-12-18 00:55:00
---

The Most Complete Demo

1
2
3
4
5
6
7
---
title: Hello, Hexo World
date: 2017-12-18 00:55:00
categories: [Markdown, Hexo]
tags: [Markdown, Hexo]
toc: true
---

学会 Front-Matter Policy 之后,你就可以开始正式的创作了~~~


Author

Waldeinsamkeit

Posted on

2017-09-20

Updated on

2022-02-24

Licensed under

You need to set install_url to use ShareThis. Please set it in _config.yml.

Comments

You forgot to set the shortname for Disqus. Please set it in _config.yml.