Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Github Pages + Jekyll-pug #14
You could probably still get a usable setup with some scripting magic.
You would create a second repository. When you're ready to deploy, it would initialize git in your Jekyll build folder and then add your second repository as a remote. Finally, it would push changes to your second repository.
A little hacky, but once you get the system set up it should be pretty smooth.
I was going to create a Jekyll Plugin that would do exactly this, but then lost motivation to do so.
@DougBeney -- thanks for this. I had come to the same conclusion, and that's what I did!
I have my site on
Putting details here for anyone else who wants to do the same.
@lucasnantonio -- sure.
It's important to note that the same git repo is tracked twice, but on different branches, and nested in different folders.
This is the basis of having your site on
However, you need to make sure that the
keep_files: - .git - .gitignore
Then you can run the build process any time you want, and it won't kill the repo.
added a commit
Nov 18, 2018
Incase this is helpful to anyone, I set up a git repo in
Warning: Not thoroughly tested. Review code and use at your own risk.