-
Notifications
You must be signed in to change notification settings - Fork 96
Publishing your website
Jitin edited this page Oct 26, 2022
·
5 revisions
If you want to site to be available at https://<username>.github.io:
- While forking (i.e. after you have clicked "Use this template"), name the repository as "username.github.io"
- Change the
_config.ymllike this:
baseurl: "/"
url: "https://username.github.io"Now, after under Settings -> Pages choose gh-pages as the branch from which the site is deployed
If you want to site to be available at https://customdomain.com:
Change the _config.yml as:
baseurl: ""
url: "https://customdomain.com"Then you can add a custom domain under Settings -> Pages -> Custom Domain. Also, you will need to add A records or CNAME record with your DNS provider.