It will take about 3 minutes to finish reading this article.
Here is a summary of all the possible reasons for publishing failure in Hexo.
1. Header information is incorrect
1.1 Header format
Please strictly follow the header format:
1 | --- |
Note:
After the second ``` there is no space.
1.2 Note
Note:
There are no empty lines in the first row.
All the keywords ‘title’,’date’,’categories’,’tags’ must be in lower case.
2. Picture does not show
The correct image format is as follows:
3. Change the font
On the basis of this article below:
https://blog.csdn.net/Reinhart_L/article/details/122587975
(1) Enter. / themes/cactus/source/CSS / _variables styl, can change the font;
(2) The available fonts are in . /themes/cactus/source/lib/, cactus comes with only two kinds of ‘meslo-LG’ and ‘vazir-font’, you can download them yourself if you need.
4. Opening a link doesn’t make it jump, it downloads it instead.
The name of your article cannot contain ‘?’, and you had better also not contain other special characters for insurance.
But, you can contain ‘?’ in your article title.
Reference
[1] https://ohmyswift.com/blog/2020/01/10/why-should-we-avoid-using-closures-in-swift-structs/
[2] https://github.com/probberechts/hexo-theme-cactus