Jekyll static site generation on a subsite?

泄露秘密 提交于 2020-02-02 11:43:48

问题


Is it possible to have Jekyll on a single subsection of my website hosted on GitHub? i.e. is it possible to have "example.github.io" be a regular site and "example.github.io/blog" be statically generated by Jekyll?

I believe it's possible to do this by creating another GitHub repo called "blog" and having that repo managed by Jekyll. I'm wondering if it can all be done in one main "example.github.io" repo.

Thanks!


回答1:


Yes, it's possible. You just have to use the Exclude setting in your _config.yml to tell Jekyll which files and/or folders it should ignore. Similarly, you can also use the Include setting to specifically include files and/or folders.

Configuration Settings / Global Configuration

https://jekyllrb.com/docs/configuration/#global-configuration



来源:https://stackoverflow.com/questions/48734528/jekyll-static-site-generation-on-a-subsite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!