Create Jekyll website with Github or Gitlab


Both Github and Gitlab (as well as Bitbucket) allow free static websites.

  • Github Pages: up to 100 GB/month and 1 GB storage for Jekyll-based websites.
  • Gitlab Pages: Up to 1 GB storage with any static site generator

Create Jekyll Github website

The “Minimal Mistakes” Jekyll template is one of numerous fast Jekyll templates that are highly fast. Forget about AMP, you can get almost as fast mobile browsing Google PageSpeed scores with Jekyll and Minimal Mistakes.

  1. Download the latest Minimal Mistakes release.
  2. Extract, then

     mv minimal-mistakes
     bundle install
  3. On Github/Gitlab, create a new blank repository (for Gitlab,
  4. edit _config.yml, change the following lines to fit your needs: title, name, description, url, repository
  5. Connect your new website to Gitlab/Github (swapping gitlab for github as appropriate)

     git init
     git add .
     git commit -am init
     git remote add origin
     git push -u origin master
  6. Future edits will follow the usual

     git commit -am foo
     git push

Easy enhancements to Wordpress migrated to Jekyll _posts

remove default “layout: post” from migrated posts

This is useful for the default layout: single in _config.yml below.

sed -i '/layout: post/d' *.html

create static page buttons for all pages

edit _data/navigation.yml

Nice formatting to all your pages and posts

copy/paste into _config.yml these lines (anywhere in file):

      path: ""

      layout: "single"
      author_profile: false
      read_time: false
      comments: true
      share: true
      related: true

include: ["_pages"]

Make a beautiful banner:

add to index.html header (between three dashes) the lines:

    overlay_color: "#000"
    overlay_filter: "0.5"
    overlay_image: /assets/images/header.jpg 
excerpt: "text overlaid on banner image"

Get rid of the author freckle on the upper left:


author_profile: false

It’s smart to do this in case you later decide a page category should change, without screwing up your search engine results.


permalink: /:title/

number of posts per archive page


paginate: 10 # amount of posts to show




Leave a Comment