GitHub Pages
Github Pages是Github推出的静态网页托管服务
使用 GitHub Pages,您可以托管个人博客、项目文档、您的简历、作品集或您想要展示的任何静态资源内容。 您的 GitHub 仓库可以轻松成为自己的网站。
使用
Github官方给每位用户分配了一个域名:username.github.io
当仓库以username.github.io
命名时,发布页面即main
分支下的index.html
,访问https://username.github.io
即可
当仓库名称为其他时,即托管在其他仓库eg_name:'respo'
时,选择Settings > Pages > Deploy from a branch
,将仓库index.html
所在分支选中即可,此时推荐使用自定义域名访问(配置CNAME/Custom domain
),或访问https://username.github.io/respo