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
主题的话,你可以参考系列博文:
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 clean |
More info: Generating
Deploy to remote sites
1 | $ hexo deploy |
More info: Deployment
Begin To Edit Article
博文编写分为两步:
- 设置博文的 Front-Matter
- 创作博文内容
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 |
|
JSON
1 | "title": "Hello World", |
Front-matter 选项中的所有内容均为 非必填 的。推荐至少填写 title
和 date
的值。
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 |
|
The Most Complete Demo
1 |
|
学会 Front-Matter Policy 之后,你就可以开始正式的创作了~~~
Hello Hexo World
You need to set
install_url
to use ShareThis. Please set it in _config.yml
.