Jekyll清除我的目录 [英] Jekyll Wiping My Directory
问题描述
我按照Jekyll Quickstart的说明进行操作.每当我在网站目录中进行更改时,更改都会以某种方式消失.例如,我修改了index.html
中的一些代码,只是使它返回到Jekyll的默认值.我还在_site
中用index.html
创建了一个名为"otherservices"的子目录.那也被抹掉了.知道为什么会这样吗?如果它不断擦拭,我真的无法使用Jekyll.
I followed the instructions for Jekyll Quickstart. Whenever I make changes in my site's directory, the changes get wiped somehow. For example, I modified some of the code in index.html
, only to have it return to Jekyll's default. I also created a subdirectory in _site
called 'otherservices' with an index.html
. That gets wiped as well. Any idea why this may be happening? I can't really use Jekyll if it keeps wiping.
推荐答案
Jekyll是静态网站生成器,每次生成网站时,它将文件放置在_site
文件夹中.
Jekyll is a static website generator, each time it generates a website it place files in the _site
folder.
您在上述文件夹中所做的任何更改都将丢失,因为在执行jekyll build
或jekyll serve
时会重新创建该更改.
Any changes you make inside the above folder are lost because it is recreated when executing jekyll build
or jekyll serve
.
应该对其余文件或文件夹进行更改,以便对其进行处理并在_site
中找到生成的文件.
Changes should be made to the rest of the files or folders so they will be processed and locate the resulting files inside _site
.
这篇关于Jekyll清除我的目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!