Jekyll清除我的目录 [英] Jekyll Wiping My Directory

查看:45
本文介绍了Jekyll清除我的目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照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 buildjekyll 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆