不久之前我们聊过使用 github pages + Hexo 搭建个人博客和搭建个人博客完善篇两篇文章。教大家搭建一个属于自己的博客网站。
除了使用 Hexo外,我们今天教大家使用Github+Jekyll搭建个人博客系统。
首先,你得有个Github的账号。如果没有Github账号,请登录Github创建一个。
在Github的搜索框里输入jekyll-now找到此仓库,点击fork。
进入设置(setting),更改仓库名称,一般改为“yourusername.github.io”,为了方便大家理解,上一张动图。
然后在在浏览器中输入你的博客地址yourusername.github.io就可以访问了。
接下来我们需要对jekyll做一些配置,在自己的博客仓库下,找到_config.yml 文件,点击打开。
配置一些名字什么的。
## This file contains configuration flags to customize your site## Name of your site (displayed in the header)name: Your Name ##**在这里填入你的博客名字**# Short bio or description (displayed in the header)description: Web Developer from Somewhere ## **在这里填入你的博客**# URL of your avatar or profile pic (you could use your GitHub profile pic)avatar: https://raw.githubusercontent.com/barryclark/jekyll-now/master/images/jekyll-logo.png ##**将此地址替换为你的头像地址**
修改好后,点commit提交。
在自己的博客仓库下找到post文件夹,点击进入:
点击create new file 创建日志文件
输入日志文件名称,格式为yyyy-mm-dd-xxx-xxx.md,如2016-11-29-Self-Introduce.md。
接下来就是写日志了,这个可以参照之前的MarkDown的写法。接下来就是发布了,这个的好处是可以直接修改,不需要hexo重新部署,不过这里的插件没之前的多,就说到这里,元旦快乐!
附:Next主题