Original Date: 07/15/2020
Overview
A static blog can easily be hosted in GitHub. Here we will be using Lanyon theme which is a variant of poole. This post won't be covering the basics of Jekyll but the resources given below provide a good overview of the same.
Quick Start
To get up and running in two minutes, the following steps can be used:
- Fork https://github.com/poole/lanyon
- Rename this to: youraccountname.github.io
- Update _config.yml (master branch is default)
- Update Name, title, etc
- baseUrl needs to be blank("") if this is the default domain
- Update CNAME to your domain name if you have one, or blank this out
- Once published, you can access the site on youraccountname.github.io (or your domain of you configured it)
How does this work
- All the references within _posts get processed
- all md files get processed and can be accessed without extension
- any html/md files at root level get added to the sidebar
- if there are any processing issues, github will notify you via email
Customizations
- Create a separate blog collection
- Customize sidebar
- Add categories and tags indices
- Add archive page
- Enable commenting using Disqus
- Add google analytics
- Add gravatar pic to the sidebar
- Add favicon
- Add social media buttons
Tips
- Simple markdown can be used to make blog/site entries. But if needed, a prose.io can be used as an online editor.
- You can clone another repo in your github account (other than the default static page one) and use the baseUrl to access it. Example: http://blog.namitsaxena.com/poole
Other Popular Themes
- Poole: provide a clear and concise foundational setup for any Jekyll site. It does so by furnishing a full vanilla Jekyll install with example templates, pages, posts, and styles.
- Poole/Lanyon: Lanyon is an unassuming Jekyll theme that places content first by tucking away navigation in a hidden drawer.
- Example: codinfox.github.io
- Poole/Hyde: Hyde is a brazen two-column Jekyll theme that pairs a prominent sidebar with uncomplicated content.
- Example: longqian.me
- Poole/Lanyon: Lanyon is an unassuming Jekyll theme that places content first by tucking away navigation in a hidden drawer.
- centrarium: A simple yet classy theme for your Jekyll website or blog.
- Example www.nikhita.dev
- Jekyll-Now: Simple static site generator that's perfect for GitHub hosted blogs
- beautiful-jekyll: ready-to-use template to help you create a beautiful website quickly. Perfect for personal sites, blogs, or simple project websites
- Example https://beautifuljekyll.com/
- pmarsceill.github.io: Focus on writing good documentation