Wen-Yu Chien

Aerospace/Astrophotography

0%

Quick Start

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
2
3
$ hexo server
or
$ hexo server

Then preview the website in http://localhost:4000

Edit in GUI

Add /admin behind the URL above
http://localhost:4000/admin/

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

To do this, you have to first shut down the server by pressing CTRT+C.

Then deploy to github:

1
2
3
$ hexo cl  //清除之前建立的靜態檔案,也可以輸入 hexo clean
$ hexo g //建立靜態檔案,也可以輸入 hexo generate
$ hexo d //部署至 Github Pages,也可以輸入 hexo deploy

Or use this all-in-one-line command:

1
hexo clean && hexo generate && hexo d

Backup

1
2
3
$ git add .
$ git commit
$ git push

Editor

Color

I am blue

underscore

Reference

https://z0935323866.medium.com/%E7%AC%AC%E4%B8%80%E6%AC%A1%E6%9E%B6%E8%A8%ADhexo%E7%B6%B2%E7%AB%99-7074161158f8

More info: Deployment