HOW TO NEW A BLOG
Where is my hexo file
ch4r1ty’s hexo file locates in
/Users/ch4r1ty/blog
The configurations
in the _config.yml
file, I made this change at the bottom of the file: this is before
1 | deploy: |
This is after:
1 | deploy: |
The repo, instead of https/http, I choose a ssh repo, since the former couldn’t run.
How to make and upload a new blog
First type this command in terminal:
1 | hexo new <layout> <title> |
the default layout is ‘post’, so you can type the command:
1 | hexo new <title> |
after making a new blog, you may find and edit it in the file below:
/Users/ch4r1ty/blog/source/_posts/
after editing the markdown file, upload it by typing this in terminal:
1 | hexo p; hexo d |