使用 GitHub Pages 自定义域名的完整指南
在使用 GitHub Pages 托管博客或个人网站时,默认生成的域名通常是 username.github.io。虽然这个域名已经能够正常访问,但为了建立更专业的个人品牌,配置一个属于自己的自定义域名(如 oyyp.top 或 blog.oyyp.top)是必经之路。 本文将为您全面解析 GitHub Pages 自定义域名的配置方法,分为子域名和顶级域名两种场景进行实操说明。 1. 核心概念速览在开始配置之前,我们先简单了解两个概念: 顶级域名(Apex Domain / Naked Domain):例如 oyyp.top。这种域名没有 www 或其他前缀。 子域名(Subdomain):例如 blog.oyyp.top 或 www.oyyp.top。它是在顶级域名前加上了二级前缀。 2. 场景一:配置子域名(如 blog.oyyp.top)子域名的解析配置最为简单,推荐采用 CNAME 记录指向 GitHub 的默认域名。 第一步:在 DNS 服务商处添加解析记录登录您购买域名的服务商控制台(如阿里云、腾讯云、Cloudflare、GoDaddy 等),进...
你好,世界!我的 Hexo 现代化博客之旅
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment