About hexo build a blog - generated index.html page was empty

 
There are roughly three cases
 

The first: the lack of a corresponding package file

Problem situation: after hexo g command without a corresponding static index.html file is generated.
Solution See this post https://www.jianshu.com/p/86e60a93080f

 

The second: the lack of appropriate profile

Problem: The generated index.html, but the file size is 0kb, blog Home Articles preview display properly, the jump point to open a blank page.
Solution: git bush after running hexo g --debug, you can find the corresponding error in the results that appears. Such as "can not find xxxxxx" will appear. That explained a configuration file is referenced, but you did not file this file can be added.
 

Third: the lack of .md file

Problem situation: after hexo g command without a corresponding static index.html file is generated.
Solution: Find _post folder if there are appropriate .md file.

Released seven original articles · won praise 3 · Views 314

Guess you like

Origin blog.csdn.net/qq_41507243/article/details/104433464