Create a new repo named as YourAccountName.github.io, with a README in it.
Go to this repo setting, finde the botton Choose theme, Select a theme you like.
Back to repo, you’ll see a new file named _config.yml. Open and add new configs:
---
title: Your Title
description: Your Description
---
Create a file index.html or index.md.
Go back to this repository's settings page, check the Github Pages block, you can see your site is accessible now.
Branch: main. Click it and create a new branch: gh-pages.gh-pages as default. Now you can deletet the main branch.Github Pages block, change the source option to gh-pages. Keep it under the /(root) , or if you need to put it under another gh-page, you can change it also.gh-pages use Jekyll (but not full), you can search gh-pages documentation to get help.
A lazy way to run gh-pages:
settings in your gh-pages, choose a theme, then run git pull.index.html, and write a line at tht top in yml language:---
layout: home
---
<!-- No other content here -->
_post/yyyy-mm-dd-Your_Title.md. At the top of the blog, you should write in yml language like this:---
layout: post
title: Your Title
author: Your Name
---
<!-- Here is your content writen in `markdown` -->
<!-- Search 'Markdown tutorial' in the google, if you don't know how to write markdown -->
Pull to the