The HHS new blog has been deployed for almost half a year, yet there are still some people who don’t know how to upload blog. Here’s a tutorial & cheatsheet in case someone forgets.
The HHS blog is only available for HHS members. You can send me a mail if you want to write fan article there
Step 1
Prepare your md file:
1 | # This is my blog |
Add Pictures
You can use sm.ms or img.wang to upload photos and pictures
Add Tables
You can use this website to generate noob tables.
Add Mathjax
You need to use {% mathjax %}` before your mathjax and `{% endmathjax %}
after your mathjax
You can also use this tool to quick replace: Tool. Install Python3, put your blog at in.txt
and run the code.
Step 2
Add front-matter. Here’s a template:
1 |
|
Be sure to write your:
- creation time
- title
- category
- tags
- your name
- post language
so your blog should look like this:
1 | --- |
When using Typora
When using Typora, make sure there are no ```
before and after your front-matter! You can manually check it by opening markdown file in notepad
Step 3
Upload to Private Repo with proper name.
Use dash and avoid English special characters.
- BAD: source/_posts/2021.2.14 无想山游记 zky视角.md
- GOOD: source/_posts/20210214-无想山游记-zky视角.md
Step 4
Wait for several minutes for the Github action to work. If you see a × here, please report to administrator