Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何为GitHubPage设置自定义域名? #37

Open
jynba opened this issue Mar 18, 2024 · 0 comments
Open

如何为GitHubPage设置自定义域名? #37

jynba opened this issue Mar 18, 2024 · 0 comments

Comments

@jynba
Copy link
Owner

jynba commented Mar 18, 2024

忘了之前怎么自定义域名了,搜了一下,又会了hh,把博客设置在了blog.cvcvcvcv.com子域名下了。我发现我之前写过QAQ,部署GithubPage到自定义域名 再记一下,免得下次又忘记了。参考链接

  • 步骤介绍
  1. 添加子域名的主机记录:记得要用CNAME!(不然待会也会提醒你用cname) 然后主机记录值用 xxx.github.io
    image
  2. 在setting页面设置github page的custom domain
  3. 注意:还要在项目中配置cname:xxx,或添加CNAME文件,我是在deploy.yml最后添加cname:xxx,里面记录你要CNAME的子域名,代表的是运行子域名访问github page(否则每次deploy之后,都会恢复成github.io)
    image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant