Github+Jekyll搭建个人博文网站
来源:互联网 发布:护眼宝pc版 知乎 编辑:程序博客网 时间:2024/06/06 19:08
概述
不久之前我们聊过使用 github pages + Hexo 搭建个人博客和搭建个人博客完善篇两篇文章。教大家搭建一个属于自己的博客网站。
除了使用 Hexo外,我们今天教大家使用Github+Jekyll搭建个人博客系统。
创建博客
首先,你得有个Github的账号。如果没有Github账号,请登录Github创建一个。
Fork 一个Jekyll模板
在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主题
1 1
- Github+Jekyll搭建个人博文网站
- Jekyll+GitHub搭建个人博客
- Jekyll+GitHub搭建个人博客
- 【Github】Github+Jekyll搭建个人博客
- Jekyll&&Github---使用jekyll在github上面搭建个人博客
- git+github+markdown+jekyll搭建个人博客
- [前端]jekyll+markdown+github搭建个人博客
- 使用GitHub Pages+ Jekyll搭建个人博客
- 使用jekyll+Github搭建个人独立博客
- Jekyll和Github搭建个人静态博客
- 用 jekyll + Github Pages搭建个人博客
- github+jekyll搭建个人静态博客
- 用GitHub+Jekyll搭建个人博客
- 利用 Jekyll + Github pages 搭建个人博客
- github page+jekyll搭建个人博客总结
- 使用Jekyll + GitHub Pages搭建个人博客
- Jekyll配合Github搭建个人博客
- 使用Jekyll和github搭建个人博客
- TFS 测试用例步骤数据统计
- Java反射机制
- Chapter 17 Micro-Programmed Control
- 知识库--jvm-Parallel+Compacting+Collector(并行压缩回收)
- Chapter 18 Parallel Processing
- Github+Jekyll搭建个人博文网站
- BZOJ 2565 最长双回文串
- jQuery事件-键盘事件
- JavaScript中的字符串(String)的常用方法
- Copy List with Random Pointer
- switch语句的表达式可以是哪些类型?
- 【Shader】用一张渐变图实现卡通渲染效果
- Java线程-同步和异步的区别
- 电脑cpu怎么看 怎么看cpu好坏 (全文)