筆記位置 https://codingluka.com/use-github-show-static-pages/
Demo 範例 https://codingluka.com/demo-implemented-scrolling-trigger-the-css-animation/ https://codingluka.com/use-wowjs-to-quickly-create-scrolling-animation/ https://codingluka.com/landing-page-implements-a/
使用 Github 展示靜態網頁
這篇很簡短,但還是筆記一下怎麼用,因為網路上找的資料有點繁雜。
github的gh-pages分支可以用來展示靜態網頁,推上去就可以正確展示了。
- 建立新的branch
git branch gh-pages
- 推上github
git push origin gh-pages
- 需要注意的是首頁要命名為index.html
- 到
[github name].github.io/[repository name]
網址查看,你的網頁已經展示在這個網址。
以我們的範例
codingluka.github.io/hello_git