Skip to content

Commit 11267de

Browse files
author
fangchensheng
committed
#commit: 更新Readme.md
1 parent 844a6ef commit 11267de

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,26 @@
11
# frankdevhub.github.io
22
Blog 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+

examples01.png

107 KB
Loading

examples02.png

245 KB
Loading

0 commit comments

Comments
 (0)