Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jekyll - create new site scaffold in existing project

Tags:

jekyll

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.

like image 577
ThisClark Avatar asked Jul 26 '15 06:07

ThisClark


1 Answers

You can force Jekyll to create a new site in a non empty folder by using the --force flag.

jekyll new <site_name> --force
like image 160
David Jacquel Avatar answered Sep 23 '22 07:09

David Jacquel