Reputation: 37
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!
Upvotes: 2
Views: 438
Reputation: 27818
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
Upvotes: 4