Skip to content

Instantly share code, notes, and snippets.

@scaomath
Last active Jun 17, 2021
Embed
What would you like to do?
Jekyll simple workflow to use custom a plugin on Github pages

Jekyll simple workflow to use custom a plugin on Github pages

Workflow

Mainly following Alexandre Rademaker's guide.

  • Checkout to source branch, where we write things with a custom plugin.
git checkout source
  • Writing things, commit and push the changes
  • Build site into _site folder, _site folder should be in the .gitignore of the source branch
bundle exec jekyll serve
  • Change to master branch, add .nojekyll as one include in the _config.yml
git checkout master
cp -r _site/* . && rm -rf _site/ && touch .nojekyll
git add .
git commit
git push --all origin

Note

In another guide by Drew Silcock, the _site folder itself is linked the remote origin/master, however, as of right now, --set-upstream is not workin in git anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment