使用jekyll搭建自己的博客系统
2016-06-22 00:00
295 查看
方式一
在上网下载一款Jekyll主题修改配置
在_posts文件夹内写博客,并推送到自己的github page上去。
方式二
这种方法主要是用来在本地预览效果,这样不用每次写完博客或网页后必须上传到github上才可以看到效果。下载Ruby
在官网下载,安装时将ruby添加到环境变量选项勾选。
下载Ruby DevKit
将DevKit解压到需要的路径,然后打开命令行进入到这个目录执行如下命令
cd 解压目录 ruby dk.rb init ruby dk.rb install #官方源不可用 gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/ gem install jekyll
gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/[/code] 应为ssl无法通过的话,可以使用http协议。
3. 下载主题
4. 预览效果jekyll --server --auto
http://localhost:4000 预览
以下是本人安装过程中遇到的问题:
Jekyll 3x版本使用主题时,在配置_config.yml时,markdown: redcarpet redcarpet: extensions: - hard_wrap - no_intra_emphasis - autolink - strikethrough - tables - lax_spacing - with_toc_data
改变为markdown: kramdown kramdown: input: GFM extensions: - autolink - footnotes - smart - hard_wrap - no_intra_emphasis - strikethrough - tables - lax_spacing - with_toc_data enable_coderay: true syntax_highlighter: rouge coderay: coderay_line_numbers: nil
参考链接
Jekyll官方教程
ruby镜像
参考的博客
Jekyll主题
相关文章推荐
- UIImage的渲染效果属性
- linux任务后台执行方法
- git学习
- PHP关闭$_ENV后获取服务器参数的办法
- PHP编程效率的20个要点
- php实现cc攻击防御和防止快速刷新页面示例
- sublime text3 配置
- php生成动态验证码
- PHP文件上传-单文件上传函数思路
- PHP文件上传-单文件上传函数
- 汽车改装你容易忽视的那些死角
- Git在eclipse中的配置详细记录
- eclipse 配置maven插件(在线+离线)
- 数值的整数次方
- [win32][c++]如何覆盖winAPI控件自带的加速键
- "'><script>alert(1)</script>
- 关于c++变长参数列表总结
- C/C++中函数调用规则(约定)__cdecl __stdcall __thiscall __vectorcall __fastcall
- 哈哈 第一篇
- Beyond Compare怎么同步压缩文件夹