File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# frankdevhub.github.io
22Blog template powered by jekyll
3+
4+ # jekyll搭建博客
5+
6+ ## 1. jekyll介绍
7+ ` Jekyll ` 是一个简单的,博客感知的静态站点生成器。
8+ 你将内容创建为文本文件(Markdown),并将其放到到文件夹中。然后,使用` Liquid-enhanced HTML ` 模板构建网站。Jekyll自动将内容和模板联系在一起,生成完全由静态资源组成的网站,它适合上传到任何服务器。
9+ Jekyll恰好是` GitHub Pages ` 的引擎,因此你可以在GitHub的服务器上免费托管项目的Jekyll页面/博客/网站。
10+
11+ ## 2. 安装
12+ ### 2.1 安装 Ruby development environment
13+ [ ` windows ` 安装教程] ( https://jekyllrb.com/docs/installation/windows/ ) .
14+ ### 2.2 安装Jekyll and bundler gems.
15+
16+ ``` shell
17+ # 移除gem默认源,改成ruby-china源
18+ $ gem sources -r https://rubygems.org/ -a https://gems.ruby-china.com/
19+ # 使用Gemfile和Bundle的项目,可以做下面修改,就不用修改Gemfile的source
20+ $ bundle config mirror.https://rubygems.org https://gems.ruby-china.com
21+ # 删除Bundle的一个镜像源
22+ $ bundle config --delete ' mirror.https://rubygems.org'
23+ $ gem install jekyll bundler
24+
25+ ```
26+
You can’t perform that action at this time.
0 commit comments