About
I have used this theme in my own php and ruby blogs.I got inspired by taylantatli’s moon and ramme themes to use this theme in Jekyll.
I’m not a designer or something, so I’m sure there is a better way to make this theme. But it’s working and looks acceptable for different screen sizes. If something looks extremely ugly and you can’t resist to fix it, just send me a PR. I will be grateful.
I see some people using this theme. I need to search on Github to find who use it. But I don’t want to search like this. If you like this theme or using it, please give a star for motivation.
Installation
- Fork the Repo
- Edit
_config.yml
file. - Remove sample posts from
_posts
folder and add yours. - Edit
index.md
file inabout
folder. - Change repo name to
YourUserName.github.io
That’s all.
Scaffolding
How JBlog is organized and what the various files are. All posts, layouts, includes, stylesheets, assets, and whatever else is grouped nicely under the root folder.
Site Setup
A quick checklist of the files you’ll want to edit to get up and running.
Site Wide Configuration
_config.yml
is your friend. Open it up and personalize it. Most variables are self explanatory but here’s an explanation of each if needed:
title
The title of your site… shocker!
Example title: My Awesome Site
url
Used to generate absolute urls in sitemap.xml
, feed.xml
, and for generating canonical URLs in <head>
. When developing locally either comment this out or use something like http://localhost:4000
so all assets load properly. Don’t include a trailing /
.
Examples:
Google Analytics and Webmaster Tools
Google Analytics UA and Webmaster Tool verification tags can be entered in _config.yml
. For more information on obtaining these meta tags check Google Webmaster Tools and Bing Webmaster Tools support.
Navigation Links
To set what links appear in the top navigation edit _data/navigation.yml
. Use the following format to set the URL and title for as many links as you’d like. External links will open in a new window.
Layouts and Content
Explanations of the various _layouts
included with the theme and when to use them.
Post and Page
These two layouts are almost similar. Only difference is page layout doesn’t show date under title.
Post Index Page
A sample index page listing all blog posts. The name can be customized to your liking by editing a few references. For example, to change Blog to Posts update the following:
- In
_data/navigation.yml
: rename the title and URL to the following:
- Rename
blog/index.md
toposts/index.md
and update the YAML front matter accordingly.
Thumbnails for OG and Twitter Cards
Site logo is used by Open Graph and Twitter Cards.
Pro-Tip: You need to apply for Twitter Cards before they will begin showing up when links to your site are shared.
Kramdown Table of Contents
To include an auto-generated table of contents for posts and pages, add the following _include
before the actual content. Kramdown will take care of the rest and convert all headlines into list of links.
Questions?
Found a bug or aren’t quite sure how something works? By all means file a GitHub Issue. And if you make something cool with this theme feel free to let me know.
License
This theme is free and open source software, distributed under the MIT License. So feel free to use this Jekyll theme on your site without linking back to me or including a disclaimer.