When I use hexo to write a blog, I create a folder demo in the source folder, and create a static file html in it.
But when I publish it, I cannot access this /demo/html. How should I create a static file in this case? What about html?
There is no demo folder in the public that generates the blog. I created the demo folder in public and it can be accessed.
But the demo folder is ignored by git and cannot be synchronized to github. Is there any way to solve it? ?
Just put it in the source of themes. You can refer to the "Add README.md file or html file in the main directory" section of the article.
I didn’t understand. Do you want to write the template yourself? ?
The only solution I can think of is
hexo g
之后,把demo文件夹放到public下,然后hexo d
, I didn’t think of any other solution.Is it a problem with the configuration file? When I use hexo, other static files in the source are automatically copied to the public folder after
hexo generate
. Take a look at hexo’s documentation on this part.at
_config.yml
文件中添加配置:skip_render: demo/**