The Jekyll Project

Thanks to Jekyll SSG, we can make websites without being a Web Dev:

So yes, Jekyll is Free and it can help you creating your Documentation, Blog etc.

I mean…we will use Jekyll together with Open Source community Themes to TWEAK and create our blog / documentation that we wanted to have for a long time.

Along the way, we will learn some interesting stuff:

  1. How to customize jekyll
  2. How to Deploy your Jekyll Website with a free Github Domain with CI/CD (GH Actions)
  3. How to know what people liked the most at your Jekyll Site with Web Analytics

Why Jekyll

  1. Ruby-based: Jekyll is written in Ruby, and it utilizes the Liquid template engine to process templates and content.
  2. Markdown and HTML: Jekyll supports both Markdown and HTML for content creation. Markdown is often preferred for its simplicity and readability.
  3. Templates and Layouts: Jekyll allows you to define templates and layouts to maintain consistency across your site. Templates can be customized using HTML and Liquid syntax.
  4. Plugins: Jekyll supports plugins that extend its functionality. These plugins can be used for tasks such as generating sitemaps, optimizing images, or integrating with third-party services.
  5. Free deployment: use Jekyll together with Github Pages / Firebase / Cloudflare Pages to get a Free Website with a domain!

Getting Started with Jekyll SSG

From the community, to the community:

git clone https://github.com/wowthemesnet/jekyll-theme-memoirs.git

#rm -rf .git

cd jekyll-theme-memoirs

gem install jekyll bundler

You might get this error: 'gem' is not recognized as an internal or external command, operable program or batch file.

To solve it:

  1. Go to the RubyInstaller for Windows website - here
  2. Download the latest version of Ruby+Devkit.
  3. Run the installer. During the installation, ensure that you check the box that says “Add Ruby executables to your PATH” to ensure the gem command works from the command line.

Verify Jekyll’s installation with:

ruby -v
gem -v

How to Customize Jekyll

bundle install
bundle update --bundler
bundle exec jekyll serve

Self-Hosting Jekyll Static WebSites

How to use Jekyll with Github Pages

What you will get by using Github Pages:

  • A free github domain
  • Webpage Linked to your GH project

Here you have an GH Pages + Actions example with Chirpy

Jekyll Example - Chirpy Theme

  • The Chirpy Theme

  • The Chirpy Starter Theme - use this one!

    • License: MIT โค๏ธ
  • Clone it

  • Adapt base url

  • Adapt url to your github

  • To install dependencies —> bundle

  • To server locally to port 4000: http://127.0.0.1:4000/ or localhost:4000

bundle exec jekyll s
  • Important files for Jekyll:
    • ./_config.yml
    • _data/contact.yml
    • ./posts/

FAQ

Help with get started - Jekyll 101

  • Find a Jekyll theme you like.
  • Install Ruby (as Jekyll uses it)
  • Try it locally and build when ready
#clone a Jekyll theme
snap install ruby --classic
bundle

bundle exec jekyll s
#http://127.0.0.1:4000/chirpy-starter/ #example

#bundle exec jekyll build

How to use Jekyll with Github Pages & GH Actions Workflow

You need a workflow like this one below so that Github Actions generates your Jekyll website and make it visible from Github Pages.

How to Add GA/F/OSS Web Analytics to Jekyll Chirpy Theme?

Thanks to Aouledissa for inspiration

  • Create _include folder in the root of your Chirpy repo
  • Create inside that folder the following files:

Copy the head.html file.

This will work not only with Google Analytics, but with other F/OSS Web Analytics and Privacy respectful like: Umami, matomo or Plausible.

Where can I get favicons for Jekyll?

Interesting Webs Built with Jekyll

Open Stories is a syndication format for distributing stories to friends and families.