Reputation: 16865
I have started using GutHub-Pages. I am using Jekyll and my gh-pages
repository has the following structure:
gh-pages (repo)
+-site
| +-about.md
| +-_config.yml
| +-index.html
+-notes.md
I would like to have htts://<username>.github.io/<repo>
point to site/index.html
.
How to do this? Thanks
Upvotes: 1
Views: 3499
Reputation: 142352
I would like to have
htts://<username>.github.io/<repo>
point to site/index.html.
You can write a simple html which redirect to the desired page
<html>
<head>
<META http-equiv="refresh" content="0;URL=/site/index.html">
</head>
</html>
Upvotes: 1
Reputation: 131
See https://help.github.com/articles/redirects-on-github-pages/ for directions on how to make any github page redirect to another page.
If you want a viewer to see the index.html hosted on github pages when they visit site/index.html
, you'll need to talk to whoever owns the DNS for site
.
Upvotes: 0