返回

使用github pages搭建个人网站

关于GitHub Pages

GitHub Pages 是一项静态站点托管服务,它直接从 GitHub 上的仓库获取 HTML、CSS 和 JavaScript 文件,(可选)通过构建过程运行文件,然后发布网站。

详见官方介绍

为什么选择Github Pages

详细步骤

1.注册Github账号

若已拥有Github账号,请跳过此步骤

官网地址:https://github.com/

2.选择主题并复制存储库

http://jekyllthemes.org/

此网站提供多种Jekyll模板,您可以从中选择,我将以本网站使用的Moonwalk主题为例

01

点击Homepage,进入此主题的Github存储库

02

点击Fork复制此存储库

03

04

3.网站,启动!

进入创建的博客仓库-Settings-Pages-Build and deployment

05

选择Deploy from a branch

Branch下选择master-/(root)并点击save

刷新页面,等待出现

Your site is live at https://username.github.io/

即可点击Visit site访问网站力

© 2024 uB1nlR   •  Theme  Moonwalk