我已經開始使用GutHub-Pages。我使用Jekyll我gh-pages
庫的結構如下:如何將github頁面指向自定義html主頁
gh-pages (repo)
+-site
| +-about.md
| +-_config.yml
| +-index.html
+-notes.md
我想有htts://<username>.github.io/<repo>
點site/index.html
。
如何做到這一點?謝謝
我已經開始使用GutHub-Pages。我使用Jekyll我gh-pages
庫的結構如下:如何將github頁面指向自定義html主頁
gh-pages (repo)
+-site
| +-about.md
| +-_config.yml
| +-index.html
+-notes.md
我想有htts://<username>.github.io/<repo>
點site/index.html
。
如何做到這一點?謝謝
請參閱https://help.github.com/articles/redirects-on-github-pages/有關如何使任何github頁面重定向到其他頁面的說明。
如果您希望查看者在訪問site/index.html
時查看託管在github頁面上的index.html,則需要與擁有DNS的人site
通話。
我想要
htts://<username>.github.io/<repo>
指向site/index.html。
你可以寫一個簡單的HTML其重定向到所需的頁面
<html>
<head>
<META http-equiv="refresh" content="0;URL=/site/index.html">
</head>
</html>
在/site.index.html
在前面的問題設置permalink: /
。
我搜索了一次,這裏有很多資源。這裏有一個:http://blog.teamtreehouse.com/using-github-pages-to-host-your-website – Gabriel