Skip to content
Blog posts repo used as submodule in jekyll site
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Blog posts repo for jekyll site

Rather than having one repo for a jekyll site and mixing up the git history with commits for the site and the content, I'm using a git submodule for posts. See this guide for an overview of the setup.


To keep things simple, write posts in the actual "blog posts" repo. Don't edit the submodule in the jekyll repo. The usual workflow is:

  1. In the blog-posts repo: write posts and push to the remote when ready
  2. In the main site repo: grab updated submodule with git submodule update --remote, and then commit and push the change to publish to your site
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.