To create a new site scaffold with Jekyll, the command is jekyll new <site_name>
where <site_name>
is the new project's root folder name. If the <site_name>
value is an existing folder, an error is thrown: Conflict: <site_name> exists and is not empty.
Is there a Jekyll command that makes it possible to create a new site scaffold inside an existing project? The purpose would be to adapt an existing static site to take advantage of templating etc in Jekyll.
You can force Jekyll to create a new site in a non empty folder by using the --force
flag.
jekyll new <site_name> --force
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With