layout: post
title: 如何使用 GitPage 搭建个人博客
categories: [资源]
tags: [Github,总结]
published: True
本文的目标
使用 Github 搭建个人博客,以及使用仓库的模板进行博客书写
前景需要
- GitHub 账号
- 心仪的网站模板(比如你所看到的这个)
- 简单的动手能力(基本的复制粘贴)
开启 GitPage
通过GitHub官方网站的新建仓库界面:https://github.com/new 你可以新建一个仓库让自己使用,这个也是你以后承载网站的地方,仓库名称最好是 xxxx.github.io 仓库类型 Public 选择添加 README.MD

仓库创建好以后点击右上角的 Settings 在下面找到 GitHub Pages, Source 选择 master,Theme 随便选择一个 或者不选择 这不重要,等待一会可以看到出现了一个链接 (你的博客链接) 点击以后是 404 这也没关系, 你已经拥有了你的博客网址

使用 Jekyll 或者其他模板引擎构建博客
如果你这里想要使用 Jekyll 而且也不想本地配置的话, 你可以直接下载我的仓库,然后修改上传, 之后再固定的文件夹下面去进行文章的编写,事实上我就是这么做的。如果是其他模板引擎的话方法同理,
文章编与上传
在本地进行文章编写在以后,使用 Git 上传至你的仓库,均可自动构建。
效果图

网友评论