Jekyll is a static site generator. You give it text written in your favorite markup language and it uses layouts to create a static website.
Published on February 08, 2023 by Priyanshu Chandel
jekyll informative technology
4 min READ
The entire website is created using using WhatATheme, a theme developed by TheDevsLot utilizing Jekyll.
Jekyll is a popular static site generator that allows you to create websites using simple markup languages like HTML, CSS, and Markdown. It provides a flexible and scalable platform for creating simple blogs, portfolios, documentation sites, and more. With Jekyll, you can use templates and plugins to customize the look and functionality of your website, and easily deploy it to a web server or hosting provider.
In this blog, we will discuss what Jekyll is and how you can use it to create your own website.
Jekyll is a static site generator that uses templates and plugins to generate a complete HTML website from source files written in markdown, HTML, CSS, and other languages. Unlike dynamic websites, Jekyll-generated websites do not require a database or server-side processing. This makes Jekyll websites fast, secure, and easy to maintain.
Jekyll offers several benefits over traditional dynamic websites:
Simplicity: Jekyll websites are simple to create and maintain, with no need for a database or server-side processing.
Flexibility: Jekyll provides a flexible and scalable platform for creating a wide range of websites, from simple blogs to complex portfolios.
Performance: Jekyll websites are fast and secure, with no need for server-side processing or database queries.
Integration: Jekyll integrates with a variety of tools and services, making it easy to deploy and manage your website.
Install Jekyll: To use Jekyll, you’ll need to install it on your computer. You can do this by following the instructions on the Jekyll website.
Create a new site: Once Jekyll is installed, you can create a new site by running the following command: jekyll new my-site. This will create a new directory with the name “my-site” that contains the basic structure and files for your website.
Customize your site: You can customize your site by adding your own content and adjusting the templates and plugins as needed. Jekyll provides a wide range of templates and plugins that you can use to add features and functionality to your site.
Build your site: When you’re ready, you can build your site by running the following command: jekyll build. This will generate the HTML files for your site.
Deploy your site: Finally, you can deploy your site to a web server or hosting provider by copying the generated HTML files to your server.
Jekyll Docs
Jekyll is a Ruby Gem that can be installed on most systems.
For detailed install instructions have a look at the guide for your operating system.
We can create a new Jekyll site just by a simple command:
jekyll new my-site
Jekyll will create a new directory named as my-site
which is customizable (i.e., you can change the name from my-site
to anything you want for example jekyll new brutus
).
We have to go inside the directory:
cd my-site
Again, my-site
is just a random name which is customizable.
bundle exec jekyll serve
Browse to
http://localhost:4000/