File tree 4 files changed +37
-3
lines changed
4 files changed +37
-3
lines changed Original file line number Diff line number Diff line change 2
2
.sass-cache /
3
3
.idea /
4
4
* .iml
5
+ wechat /content /*
Original file line number Diff line number Diff line change 9
9
10
10
本工程实时预览地址 [ blogtest.codeboy.me] ( http://blogtest.codeboy.me )
11
11
12
+ 博客可以简单的搭配微信小程序查看, 具体查看 [ https://github.com/androiddevelop/WechatBlog ] ( https://github.com/androiddevelop/WechatBlog )
13
+
12
14
### 安装方式:
13
15
14
16
1 . 安装jeykll
15
-
17
+
16
18
```
17
19
gem install jekyll
18
20
gem install jekyll-paginate
19
21
```
20
22
2 . 将CodeboyBlog复制到服务器(部署到github.io的方式自行搜索)。
21
23
3 . 运行命令生成网站即可(经常改变配置的话不建议增量更新)。
22
-
24
+
23
25
```
24
26
jekyll serve --watch &
25
27
jekyll serve --watch --incremental & ##增量更新
32
34
cd /path/to/blog
33
35
jekyll serve --watch &
34
36
```
35
-
37
+
36
38
> ps开头的命令是关闭所有jekyll的进程
37
39
>
38
40
> cd到网站的根目录
49
51
50
52
### 更新内容:
51
53
54
+ #### 2017-11-17
55
+
56
+ - 添加初版微信小程序支持,可以便捷创建专属于自己博客的小程序。
57
+
52
58
#### 2017-04-05
53
59
54
60
- 调整_config部分配置。
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # 创建目录
4
+ if [ ! -d content ]
5
+ then
6
+ mkdir content;
7
+ fi
8
+
9
+ # 生成文件
10
+ position=1;
11
+ for loop in ` ls ../_posts`
12
+ do
13
+ id=${loop/ .md/ } ;
14
+ echo " $id $position " ;
15
+ content=` cat template` ;
16
+ content=${content/ cb_page_index/ $position }
17
+ echo " ${content} " > " content/$id "
18
+ (( position++ )) ;
19
+ done
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: null
3
+ ---
4
+ {% for post in site.posts %}
5
+ {% if forloop.rindex == cb_page_index %}
6
+ {{ post.content }}
7
+ {% endif %}
8
+ {% endfor %}
You can’t perform that action at this time.
0 commit comments