Bitwiser Jekyll theme
2 mins read
After creating my own Jekyll theme, on which this blog is based, I decided to share it with others. Here is a detailed guide to get started with the theme.
Theme Page
Getting Started
(Assuming you know what Jekyll and Github pages are.)
-
Download this theme’s zip file from here or clone the repository using
git clone https://github.com/brijeshb42/bitwiser.git. If you are cloning, then make sure to delete thegh-pagesbranch as it includes the files for the theme website. -
Install
rubyand then dogem install jekyll. This theme uses the latestjekyllversion. So if you already have it installed, then upgrade it. -
_config.ymldescribes all the variables which you are required to set. The description begins with double hash(##). And the value to be set is commented below it using#. - Edit
_config.ymlaccording to your requirements.name:Your website namedisqus:disqusForumNameIf this value is present, disqus commenting will be automatically added to all your blog posts.ga_id:googleAnalyticsIDIf this value is present, google analytics will be added to your website/blog. Ifga_idis present, make sure thatga_domainis also present.description:A short description of your website to be included in meta tag of your homepagekeywords:a few frequently used keywords on your sitelinks: This variable has a few commonly used social networks’ linksfacebook:facebookIdtwitter:twitterHandleemail:email@example.comgithub:githubUsername
about_image: This is a new variable introduced. If defined, make sure the image is present inimgdirectory. If not defined, a provided placeholder image is used. ** If github link is provided inlinksvariable, then the github profile picture will be used ifabout_imageis not defined.sidebar: This is a new variable introduced. It is used to enable/disable sidebar. If present, a sidebar will be displayed. To disable sidebar, just comment this line using#.
-
After setting the values in
_config.yml, you can start adding posts in the_postsdirectory. Remove the example posts from the directory. The name of files in this directory should be according to specifications byjekyll, i.e,YYYY-MM-DD-your-post-title.md. Note that the file name extenion can be anything from md, markdown, mkd, textile or html. -
Replace the image files
favicon.pngandsharer.pngwith images of your own. -
Test the site on local machine using
jekyll servein the theme directory. -
If all works well,
git pushyour changes to your github pages repositoryhttps://github.com/githubUserName/githubUserName.github.io -
Then visit your blog at http://githubUserName.github.io.
- If you want to use a custom domain, then edit the
CNAMEfile and add your own domainexample.com. Make sure your domain points to github ip address.