GitHub Pages搭建博客HelloWorld版

1.原理

  GitHub作为博客相关文件的托管方,你把按照jekyll规定的目录及文件上传至github库中,通过约定的库名称即可访问到经过jekyll渲染后的博客页面。

2.搭建过程

  2.1、注册Github账号,并新建一个名称为username.github.io的repository(username为你注册Github的名称)

  2.2、按jekyll约定的文件及目录结构在本地创建文件及目录

  2.3、将2.2创建好的所有文件上传至2.1中创建的repository中

  2.4、浏览器访问 https://username.github.io 即可打开已创建的博客

3.参考链接

  http://www.ruanyifeng.com/blog/2012/08/blogging_with_jekyll.html (阮一峰搭建教程)

  https://pages.github.com/ (GitHub Pages官网)

  https://jekyllrb.com/docs/structure/ (jekyll目录结构)

原文地址:https://www.cnblogs.com/luoxiaolei/p/8453800.html