- 登入 GitHub 。
- 找到該 repo 。
Settings> 左側欄Pages。- 在
Source選擇分支 與 目標資料夾或檔案(我選root),按下Save。 - 非必要: 在
Theme Chooser選擇 網頁主題。- 若有選則 網頁主題,系統會自動幫你在該 repo 中加入 .yml 檔案,並且幫你自動 commit, commit message 如:
Set theme jekyll-theme-midnight
- 若有選則 網頁主題,系統會自動幫你在該 repo 中加入 .yml 檔案,並且幫你自動 commit, commit message 如:
-
成功開啟 GitHub Pages 後上方會出現該 repo 的網址,例如:
Your site is published at https: //{your github account}.github.io/{your repo name}/
從 (1)網址登入 或 (2)設定頁面獲取網址 或 (3):
- 登入 GitHub 。
- 找到該 repo 。
- 點擊 右側欄
Environments或是github-pages。- 如果從來沒有開啟 Pages 功能,不會顯示此區塊。
- 如果有開過 Pages 功能,就會顯示此區塊。
- 點擊 右側欄
View deployment可瀏覽網頁。- 若開過 Pages 功能但後來關閉,點擊
View deployment後會出現 404。
- 若開過 Pages 功能但後來關閉,點擊
在 Source 選擇分支 None,按下 Save 。