返回
使用github pages搭建个人网站
July 2023
关于GitHub Pages
GitHub Pages 是一项静态站点托管服务,它直接从 GitHub 上的仓库获取 HTML、CSS 和 JavaScript 文件,(可选)通过构建过程运行文件,然后发布网站。
详见官方介绍
为什么选择Github Pages
- 免费!!!
白嫖 - 操作简单,易于小白上手
- 主题多样
- 高度自定义
详细步骤
1.注册Github账号
若已拥有Github账号,请跳过此步骤
官网地址:https://github.com/
2.选择主题并复制存储库
此网站提供多种Jekyll模板,您可以从中选择,我将以本网站使用的Moonwalk主题为例
点击Homepage,进入此主题的Github存储库
点击Fork复制此存储库
-
Owner创建者——不用动
-
Repository name存储库名字——username.github.io (username即为您的Github账户名)
-
Description存储库介绍——非必填项
-
Copy the main branch only——勾选
-
最后Create fork
3.网站,启动!
进入创建的博客仓库-Settings-Pages-Build and deployment
选择Deploy from a branch
Branch下选择master-/(root)并点击save
刷新页面,等待出现
Your site is live at https://username.github.io/
即可点击Visit site访问网站力
© 2024 uB1nlR
•
Theme Moonwalk