Simple jekyll blog
This is a simple, beautiful theme for Jekyll that emphasizes content rather than aesthetic fluff. It's mobile first, fluidly responsive, and delightfully lightweight.
It's pretty minimal, but leverages large type and drastic contrast to make a statement, on all devices.
⚠️ This requires ruby and rubygems installed :-
- Clean layout
- Resposive layout
- Preprocessor SASS
- HTML minified
- CSS minified
- No Javascript
- Pagination
- Syntax highlight
- Author config
- Comments with Disqus
- Share posts
If you're completely new to Jekyll, I recommend checking out the documentation at http://jekyllrb.com.
Fork the repo, and then clone it so you've got the code locally.
$ Fork or clone repo `git clone git@github.com:ukirderohit/blog.git`
$ cd blog
$ gem install bundler # If you don't have bundler installed
$ bundle install
$ Start Jekyll server: `jekyll serve`
Access, localhost:4000/blog
The _config.yml
located in the root of the Pixyll directory contains all of the configuration details
for the Jekyll site. The defaults are:
# Site settings
title: Rohit Ukirde
email: your_email@example.com
author: Rohit Ukirde
description: "A simple, beautiful theme for Jekyll that emphasizes content rather than aesthetic fluff."
baseurl: ""
url: "http://ukirderohit.me"
# Build settings
markdown: kramdown
permalink: pretty
paginate: 4
Then, start the Jekyll Server. I always like to give the --watch
option so it updates the generated HTML when I make changes.
$ jekyll serve --watch
Now you can navigate to localhost:4000
in your browser to see the site.
You can host your Jekyll site for free with Github Pages. Click here for more information.
In addition to your github-username.github.io repo that maps to the root url, you can serve up sites by using a gh-pages branch for other repos so they're available at github-username.github.io/repo-name.
This will require you to modify the _config.yml
like so:
# Site settings
title: Repo Name
email: your_email@example.com
author: Rohit Ukirde
description: "Repo description"
baseurl: "/repo-name"
url: "http://github-username.github.io"
# Build settings
markdown: kramdown
permalink: pretty
paginate: 4
This will ensure that the the correct relative path is constructed for your assets and posts. Also, in order to run the project locally, you will need to specify the blank string for the baseurl: $ jekyll serve --baseurl ''
.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Fork the master
branch and delete gh-pages
branch in it. This is important because gh-pages
branch is used here only to host the blog. You should be using the master branch as the source and create a fresh gh-pages
branch.
After forking the repository, click on branches.
Delete gh-pages
branch.
You have to create a new gh-pages
branch using the master branch. Go back to the forked repository and create gh-pages
branch.
Now, go to settings and check the Github Pages section. You should see a URL where the blog is hosted. If not select a branch as source.
It is under the MIT license.
Enjoy 😋