2016-03-21 40 views
0

我已經開始使用GutHub-Pages。我使用Jekyllgh-pages庫的結構如下:如何將github頁面指向自定義html主頁

gh-pages (repo) 
+-site 
| +-about.md 
| +-_config.yml 
| +-index.html 
+-notes.md 

我想有htts://<username>.github.io/<repo>site/index.html

如何做到這一點?謝謝

+1

我搜索了一次,這裏有很多資源。這裏有一個:http://blog.teamtreehouse.com/using-github-pages-to-host-your-website – Gabriel

回答

0

我想要htts://<username>.github.io/<repo>指向site/index.html。

你可以寫一個簡單的HTML其重定向到所需的頁面

<html> 
    <head> 
    <META http-equiv="refresh" content="0;URL=/site/index.html"> 
    </head> 
</html> 
0

/site.index.html在前面的問題設置permalink: /

相關問題