Start with jekyll starter to learn how work with jekyll
Jekyll Source Code Project Free Download →
Before you begin, ensure you have the following prerequisites installed on your system:
To install Jekyll, follow these steps:
Open your terminal and run the following command to install Jekyll and Bundler:
gem install jekyll bundler
Create a new Jekyll site by running:
jekyll new myblog
Replace myblog
with your desired site name.
Change into your new directory:
cd myblog
Build the site and start the local server:
bundle exec jekyll serve
If you are using Ruby version 3.0.0 or higher, you might need to add webrick
to your dependencies:
bundle add webrick
You can also use the --livereload
option to automatically refresh the page with each change:
bundle exec jekyll serve --livereload
Browse to your local site at http://localhost:4000
.
When you create a new Jekyll site, you will see the following directory structure:
├── _config.yml
├── _posts
├── Gemfile
├── Gemfile.lock
├── index.md
└── README.md
To create a new page, add a file in the root directory of your project. For example, to create an "About" page, you would create a file named about.md
or about.html
. The file extension determines the markup language used for the page content.
Create the file:
touch about.md
Add front matter and content:
---
title: About
permalink: /about/
---
# About Page
This is the about page.
Save the file and refresh your Jekyll site in the browser. The new page should now be accessible at the URL corresponding to the filename.
Posts are stored in the _posts
directory. Each post file should be named in the format YYYY-MM-DD-title.md
.
Create a new post file:
touch _posts/2024-12-29-my-first-post.md
Add front matter and content:
---
title: My First Post
date: 2024-12-29
---
# My First Post
This is my first blog post.
Save the file and refresh your Jekyll site in the browser. The new post should now be listed on your blog.
The _config.yml
file allows you to customize various aspects of your site, such as the title, description, URL, and more.
Open the _config.yml file in a text editor.
Make changes to the configuration settings. For example:
title: My Jekyll Blog
description: A blog about my experiences with Jekyll.
url: https://example.com
baseurl: /myblog
Save the file. Changes will take effect the next time you run jekyll build
or jekyll serve
.
Layouts define the structure and design of your site’s pages and posts.
page.html
for pages and post.html
for posts.To build your website locally, use the following command:
bundle exec jekyll build
This command compiles your site into the _site
directory, which you can then deploy to any web server or hosting provider.
GitHub Pages provides an easy way to host your Jekyll site.
_config.yml
file and committing changes. GitHub Pages will rebuild your site automatically.minima
. You can change this theme or create your own by modifying the theme
setting in _config.yml
._config.yml
file under the plugins
section.By following these steps, you can create a fully functional and customizable website using Jekyll. This guide provides a solid foundation for getting started, and you can further customize and extend your site as needed.
Litov a Minimalist Themes built with eleventy 11ty for your multipurpose website projects.
The Cubber Jekyll Theme emerges as a standout option, particularly for those seeking a modern, futuristic design. Here’s a detailed look at what makes the Cubber theme an excellent choice for your website or blog projects.