git - How to create static html without templates in hexo?
淡淡烟草味
淡淡烟草味 2017-05-02 09:25:34
0
5
651

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? ?

淡淡烟草味
淡淡烟草味

reply all(5)
黄舟

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/**

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template