00. Article publishing failure problem summary

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
2
3
4
5
6
7
8
9
10
---
title: 00. Article publishing failure problem summary
date: 2023-01-15 14:00:00
categories:
- [Others, 00. others]
tags:
- hexo
- configuration
- tool
---

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.

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