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
GefƤllt es dir? Dann teile es!