klugjo / hexo-theme-anodyne

🌋 Original Bright Theme for Hexo
http://www.codeblocq.com/assets/projects/hexo-theme-anodyne/
MIT License
152 stars 33 forks source link

about.html question #1

Closed realsidney closed 7 years ago

realsidney commented 7 years ago

i create an about.html file in public folder , and it works , but after [hexo clean] ,it disappear, how to solve it, thanks.

klugjo commented 7 years ago

This is a hexo related question, and has nothing to do with this theme but here you go:

hexo clean will clean up the whole public folder.

If you want to add a static page to your site, use the following command

hexo new page about

this will create an about.md file where you can put the content of your page and will be generated at the same time as the rest of your site

https://hexo.io/docs/writing.html

If you need a completely custom html file for your about.html, you can simply put it in the source folder instead, and it will be copied and updated in the public folder each time you generate your site.

realsidney commented 7 years ago

I am a new guy, and thanks your patient answer.

klugjo commented 7 years ago

No worries, if you continue playing around with hexo, you will quickly understand how it works.

Have fun