Me
•
27 July 2024
•
2 mins
Navigate to the Main Page of the Repository
On GitHub.com, go to the main page of the repository at awesome-jekyll-theme.
Click ‘Use this Template’
Click the “Use this template” button above the file list and select “Create a new repository.”
Set Repository Details
https://YOURUSERNAME.github.io
, name it YOURUSERNAME.github.io
(replace YOURUSERNAME
with your GitHub username). Otherwise, you can choose any name you prefer, and the site will be available at https://YOURUSERNAME.github.io/REPOSITORYNAME
.Create Repository from Template
Click “Create repository from template.”
Enable GitHub Pages
To deploy the site on GitHub Pages, enable it in your repository settings. Go to Settings -> Pages -> Source and select GitHub Actions
.
Customize Your Website Settings
Edit the _config.yml
file to change any settings you want. The settings in the file are self-explanatory, and there are comments inside to help you understand what each setting does. After making changes, click the “Commit changes” button to save them.
Congratulations! You Have a Website!
If you named the repository YOURUSERNAME.github.io
, your website should be ready in a minute or two at https://YOURUSERNAME.github.io
. If you used a different name, your website will be available at https://YOURUSERNAME.github.io/REPOSITORYNAME
. Every time you make a change to any file, your website will be rebuilt and updated in about a minute.
Create a New Jekyll Site
If you don’t already have a Jekyll site, create one with:
jekyll new my-site
Then, navigate into your new site’s directory:
cd my-site
Add the Theme to Your Gemfile
Open your Gemfile
and add this line:
gem "awesome-jekyll-theme"
Update Your _config.yml
In your _config.yml
file, add this line:
theme: awesome-jekyll-theme
Install the Theme
Run the following command to install the theme and its dependencies:
bundle
Run Your Site
Start your Jekyll site with:
bundle exec jekyll serve
Like it? Share it!