Merge pull request '增加个人主页建站工具说明' (#31) from maxjhandsome/gitlink_help_center:master into master

This commit is contained in:
maxjhandsome 2023-10-25 14:27:22 +08:00
commit 72d422c00b
11 changed files with 24 additions and 9 deletions

View File

@ -0,0 +1,4 @@
{
"label": "个人主页建站",
"position": 11
}

View File

@ -6,21 +6,23 @@ sidebar_position: 1
个人主页建站是一个免费的静态网页托管服务,可用于托管静态个人主页、个人博客等静态页面。个人建站不同工具如下
### Hugo
### Hugo工具
使用Hugo 工具创建的仓库需要将代码仓库中config.toml 文件中的 baseURL 修改
将值改成 个人建站服务中显示的网站地址,
例如: 现在有一个网站地址为 http://KingChan.gitlink.net/blog
那么 config.toml 中的 baseURL 应该为 http://KingChan.gitlink.net/blog
![img](../../static/img/个人主页建站/建站工具1.png)
修改完毕后点击提交
![img](../../static/img/个人主页建站/建站工具2.png)
提交完成后,开始部署
![img](../../static/img/建站工具3.png)
静态页面预览
![img](../../static/img/建站工具4.png)
### jekyll
### jekyll工具
如果是jekyll项目
使用jekyll工具创建的个人站点需要对代码仓库中 _config.yml文件中的 baseurl和url两个值进行修改jekyll的配置文件比较特殊需要根据 个人建站服务 中显示的 网站地址
@ -30,13 +32,16 @@ sidebar_position: 1
baseurl: "/jekyll"
url: "http://KingChan.gitlink.net"
![img](../../static/img/建站工具5.png)
修改完成后点击 提交变更
![img](../../static/img/个人主页建站/建站工具2.png)
提交完成后,前往建站服务开始部署
![img](../../static/img/建站工具7.png)
提交完成后,开始部署
![img](../../static/img/建站工具8.png)
### hexo
### hexo工具
如果是 hexo项目
使用Hexo工具创建的仓库需要将代码仓库中_config.yml 文件中的 url修改
@ -45,9 +50,15 @@ url: "http://KingChan.gitlink.net"
那么 _config.toml 中的 url应该为 http://KingChan.gitlink.net/hexo
![img](../../static/img/建站工具9.png)
修改完毕后提交变更
![img](../../static/img/个人主页建站/建站工具2.png)
提交完成后,前往建站服务开始部署
提交完成后,开始部署
![img](../../static/img/建站工具11.png)
![img](../../static/img/建站工具12.png)
![img](../../static/img/建站工具13.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 942 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB