Andry
Andry

Reputation: 16865

How to point github pages to custom html home page

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

Answers (3)

David Jacquel
David Jacquel

Reputation: 52829

In /site.index.html set permalink: / in the front matter.

Upvotes: 0

CodeWizard
CodeWizard

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

edunham
edunham

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

Related Questions