☛ August 17, 2013 ❝Grand Opening❞
Categorized documentation ≀ Tagged how.to github jekyll
Setting up my github pages
Well, this was moderately easy, by combining WDW's jekyll-boilerplate project template for Jekyll with one of the github standard themes.
Here's a rough outline of the necessary steps:
- Copy
jekyll-boilerplate
into your»accountname«.github.io
repository. - Save the content of
index.html
. - Overwrite this with one of the standard templates, as described here.
git pull
the theme you just saved.- Merge the new
index.html
with_layouts/default.html
(i.e. copy the contents, and insert the existing template markup at the appropriate places). - Restore the
index.html
saved fromjekyll-boilerplate
. - Change
images
andstylesheets
URLs to be server-absolute, else blog posts won't render correctly. This was at least necessary for the theme I chose, and might not apply to others.
And then what you see here is what you'll get.
Locally serving your site
To avoid the up to 10 minute delay of the github publishing queue, you can install
Jekyll locally as root
:
Then within your git working directory, start an auto-refreshing Jekyll server process using…
Or even better, copy my jekyll-serve.sh script
to your project, and just call ./jekyll-serve.sh start
.
Now, just save any changes to your posts or layouts, and then reload the instantly rendered result in your browser, pointed at http://localhost:4000/.
Further reading
Tutorials and How-Tos
- Quickly publish beautiful pages for you and your projects
- Getting to Know GitHub Pages: Static Project Pages, Fast
Tools
- Jekyll — Simple blog-aware static sites
- Zero to Hosted Jekyll Blog in 3 Minutes
- Helpers for hosting python projects on GitHub