How to use GitHub Pages

How to use GitHub Pages to easily create and publish static websites.

We have tried two methods while looking at the official site.

  • Prepare HTML and publish the site
  • Prepare Markdown and publish the site

Methods

I did a lot of research on the web about how to do this.
The easiest to understand was the official site.
So, it is better to check the latest official information.

GitHub Pages

Result

Created Website

https://miajimyu.github.io/
HTML version.
index.html that only displays Hello World.
*Maybe this one will be changed in the future.

https://miajimyu.github.io/github-pages-markdown-sample/
Markdown Version.
Markdown is left at the default shown after selecting Theme.
index.md and _config.yml have been generated.

Repository

miajimyu/miajimyu.github.io

miajimyu/github-pages-markdown-sample

Learn

  • It is very easy to publish a static site.
  • There are two ways to publish a static site: you can prepare HTML or you can prepare Markdown and have it converted to HTML
  • If you create .github.io repository, the URL is https://<username>.github.io/.
  • If you create another repository, it will be published at the URL https://<username>.github.io/<repository name>.

Sponsored Links

Last modified October 11, 2022: update (8216439)