hexo icon indicating copy to clipboard operation
hexo copied to clipboard

How do I add a README.md file into the root directory of the generated blog by HEXO?

Open porridgec opened this issue 12 years ago • 7 comments

as the title,I want a README.md file generated in the /public directory,what shoud I do?THX~

porridgec avatar Aug 12 '14 07:08 porridgec

add it

layout: false
---

#158

Xuanwo avatar Aug 12 '14 10:08 Xuanwo

sorry it didnt work..

porridgec avatar Aug 12 '14 14:08 porridgec

添加了

layout: false
---

之後仍然不可以,希望得到一個比較具體的回答

slfmessi avatar Aug 19 '14 05:08 slfmessi

There is a workaround. Suppose you're using landscape, put the README.md file into themes/landscape/source.

To make it work, you might need to hexo clean once.

timnew avatar Aug 19 '14 17:08 timnew

Agree with @timnew . All the files in themes/themes-name/source will be copied to your website root directory. So, you can get the README.md in this way.

@porridgec @slfmessi I'm sorry for my answer can't help you, there may be a problem I don't know.

Xuanwo avatar Sep 06 '14 15:09 Xuanwo

感谢@timnew ,已经添加至 http://xuanwo.org/2014/08/14/hexo-usual-problem/#在主目录下添加README-md文件或者html文件

Xuanwo avatar Sep 06 '14 15:09 Xuanwo

This solution does not work for .nojekyll file. Does it ignore files starting with a dot?

charsi avatar Jan 13 '18 22:01 charsi