What's going on here? Welp, I'm trying to create a nice way to blog where the primary focus of the blogging is code. Including code with tumblr kinda sucks. But GitHub Pages has a strong focus on code....
I'm limiting myself to two resources: git and GitHub Pages. My high level goals are:
- A simple "container site" hosted at [spinosa.github.io] (to move to custom domian [thecodeistheblog.com] eventually)
- Each "post" on that site is actually it's own repository
Here's the current plan I'm working on to accomplish that:
- Set up the "container site"
- Create a personal repo that GH will publish: [spinosa.github.io]
- Use the GHPages site generator to get a basic up and running for [spinosa.github.io]
- Set up a custom domain (later)
-
Create my first "post repository"
-
Create a standard repo with some code, README.md and LICENSE
-
Manually create
gh-pages
branch in that repo with a single file: index.html -
This file will become the blog post...
-
Publish that post
-
There are two ways to publish... 1. It's already published!
- The
gh-pages
branch above with theindex.html
file is available at [http://.github.io/normal-repo-name] 2. Customize the post name...
- Add the "post repository" as a submodule of the "container site"...
git submodule add -b gh-pages https://github.com/<username>/<normal-repo-name> <blog-post-name>
- You file will now also be available at [http://.github.io/]
- The
- Get a nice jekyll template working on the container site
- Get that template working for the post repository
- Probably more stuff, but I gotta bounce right now... getting yelled at...
- Did it work?
- If so...
- update my documentation on how to accomplish this
- add some content to spinosa.github.io/index.html about what's going on here
- write the actual blog post about my code
- link to the blog post from spinosa.github.io/index.html
- write another blog post about this form of blogging =]