Hello World

Just keep this post as a memo about Hexo, markdown gramma, etc.

Markdown

Hexo

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. Open Git Bash and turn my working directory to D:/Hexo.

1
$ cd d:/Hexo

Create a new draft

The reference is http://oomusou.io/hexo/hexo-draft/. Create a new draft under the directory source/_drafts.

1
$ hexo new draft <title>

After editing the drafts, use --draft parameter to preview.

1
$ hexo server --draft

After being satisfied with the draft, use publish command to move the .md file to the directory source/_posts. Then you can generate and deploy.

1
$ hexo publish <filename>

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

坚持原创技术分享,您的支持将鼓励我继续创作!