jekyll-theme-mdui 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b865a3234c51c6281045fdbfd298eb8b1f06d244
4
- data.tar.gz: 917b77acb96bf4fd2af9f4bc6bc45ada3f4abb07
3
+ metadata.gz: 8b775a2169996e2628434d93caed7791b5e4b57b
4
+ data.tar.gz: b11e007b6fdaa8e82a72566c505da14eb66dcce3
5
5
  SHA512:
6
- metadata.gz: 34c9e3f4ed63c80cfcf54cc9a338b23a9ae09d3f6e304723c1720478c7b9d6f1b14d1bff2860d65b1b89f75c8eb951e82b2b3d5a0faf0cd5be477d14af5c0847
7
- data.tar.gz: 521d056167ea93a2e7d272cffc6773ffef3635fd43f5f21d9128d83737d80f7b71dfd8e1b8265869aa48aafacce247e6e7761915d3cbddb644dfb5ca782bb07e
6
+ metadata.gz: 857f9f995bdb03ac47a75b85d3b012cf68e976959d2242d3f68988fa8f1b2f341b3732ddb9c37756bb8d2534fbf1b33e38097d1a80951ece825875e3f4694857
7
+ data.tar.gz: 40a518ac596c3bfa07bab47addc7d42104dc3fd4a2f1fe92b372cb32dccb2efc12827ad05d64fadcbeadae0d13c593881bf98f74bca2196872dbafb89afc92bb
data/LICENSE.txt CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2017
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -1,229 +1,243 @@
1
- # jekyll-theme-mdui
2
-
3
- A Jekyll theme based on mdui
4
-
5
- [demo](https://blog.kejun.space)
6
-
7
- [![Version](https://img.shields.io/badge/version-0.2.3-green.svg?style=flat-square)]()
8
- [![Jekyll](https://img.shields.io/badge/Jekyll-3.4+-green.svg?style=flat-square)](https://jekyllrb.com/)
9
-
10
- [![Build Status](https://img.shields.io/travis/KeJunMao/jekyll-theme-mdui.svg?style=flat-square)](https://travis-ci.org/KeJunMao/jekyll-theme-mdui)
11
- [![Gem](https://img.shields.io/gem/dt/jekyll-theme-mdui.svg?style=flat-square)](https://rubygems.org/gems/jekyll-theme-mdui/)
12
-
13
- [![Author](https://img.shields.io/badge/author-KeJun-blue.svg?style=flat-square)](https://blog.kejun.space)
14
-
15
- ## Installation
16
-
17
- We have two ways to install themes.
18
-
19
- ### First ways
20
-
21
- Add this line to your Jekyll site's `Gemfile`:
22
-
23
- ```ruby
24
- gem "jekyll-theme-mdui"
25
- ```
26
-
27
- And add this line to your Jekyll site's `_config.yml`:
28
-
29
- ```yaml
30
- theme: jekyll-theme-mdui
31
- ```
32
-
33
- And then execute:
34
-
35
- $ bundle
36
-
37
- Or install it yourself as:
38
-
39
- $ gem install jekyll-theme-mdui
40
-
41
- ### Second ways
42
-
43
- Fork this repo to your repo:
44
-
45
- ```shell
46
- git clone https://github.com/yourname/jekyll-theme-mdui.git
47
- cd jekyll-theme-mdui
48
- bundle install
49
- jekyll s -w
50
- ```
51
-
52
- Or direct clone:
53
-
54
- ```shell
55
- git clone https://github.com/KeJunMao/jekyll-theme-mdui.git
56
- cd jekyll-theme-mdui
57
- bundle install
58
- jekyll s -w
59
- ```
60
-
61
- ## Usage
62
-
63
- ### _config
64
-
65
- ```yml
66
- title: "My blog" # Your site title
67
- description: "This is my blog." # Your site description
68
- url: # Your site url
69
- baseurl: # baseurl
70
- author: "My" # Your name
71
- avatar: "https://myAvatar.png" # Your avatar
72
- lang: "zh-CN" # lang
73
- paginate: 5 # paginate
74
- paginate_path: "/blog/page:num/" # paginate path
75
-
76
- disqus_shortname: "" # Your disqus shortname
77
-
78
- google_analytics: "" # Your google analytics ID
79
-
80
- gems: # paginate gem
81
- - jekyll-paginate
82
- ```
83
-
84
- ### _data
85
-
86
- * friends.yml
87
- ```yml
88
- - name: MDUI # name
89
- image: # avatar or logo
90
- url: https://www.mdui.org/ # url
91
- describe: 一套用于开发 Material Design 网页的前端框架
92
- ```
93
- * menus.yml
94
- ```yml
95
- - name: SEARCH # name
96
- url: /pages/menus/search.html # path
97
- icon: search # icon from https://www.mdui.org/docs/material_icon
98
- ```
99
- Default does not display the editor.If you want the editor to appear in the menu:
100
- ```yml
101
- - name: Editor # name
102
- url: /pages/editor.html # path
103
- icon: edit # icon from https://www.mdui.org/docs/material_icon
104
- ```
105
- * sns.yml
106
- ```yml
107
- - name: bilibili # name,supported:bilibili,facebook,github,gplus,instagram,linkedin,telegram,tumblr,twitter,weibo,zhihu
108
- url: # url , if it is empty, it is not enabled
109
- ```
110
-
111
-
112
- ### search.json
113
-
114
- ```json
115
- ---
116
- ---
117
- [
118
- {% for post in site.posts %}
119
- {
120
- "title" : "{{ post.title | escape }}",
121
- "url" : "{{ site.baseurl }}{{ post.url }}"
122
- } {% unless forloop.last %},{% endunless %}
123
- {% endfor %}
124
- ]
125
- ```
126
-
127
- ### tags.json
128
- ```json
129
- ---
130
- ---
131
- {% capture tags %}
132
- {% for tag in site.tags %}
133
- {{ tag[0] }}
134
- {% endfor %}
135
- {% endcapture %}
136
- {% assign sortedtags = tags | split:' ' | sort %}
137
- [
138
- {% for tag in sortedtags %}
139
- {
140
- "id" : "{{ tag | escape}}",
141
- "post": [
142
- {% for post in site.tags[tag] %}
143
- {
144
- "title": "{{ post.title | escape }}",
145
- "excerpt": "{{ post.excerpt | strip_html | escape | strip_newlines}}",
146
- "url": "{{ site.baseurl }}{{ post.url }}"
147
- } {% unless forloop.last %},{% endunless %}
148
- {% endfor %}]
149
- } {% unless forloop.last %},{% endunless %}
150
- {% endfor %}
151
- ]
152
- ```
153
- ### manifest.json
154
- ```json
155
- {
156
- "name": "KeJun BLOG",
157
- "short_name": "KeJun",
158
- "icons": [{
159
- "src": "assets/images/touch/icon-128x128.png",
160
- "sizes": "128x128",
161
- "type": "image/png"
162
- }, {
163
- "src": "assets/images/touch/apple-touch-icon.png",
164
- "sizes": "152x152",
165
- "type": "image/png"
166
- }, {
167
- "src": "assets/images/touch/ms-touch-icon-144x144-precomposed.png",
168
- "sizes": "144x144",
169
- "type": "image/png"
170
- }, {
171
- "src": "assets/images/touch/chrome-touch-icon-192x192.png",
172
- "sizes": "192x192",
173
- "type": "image/png"
174
- }],
175
- "start_url": "/index.html?homescreen=1",
176
- "display": "standalone",
177
- "background_color": "#fdfdfd",
178
- "theme_color": "#2a7ae2"
179
- }
180
- ```
181
- Replace it with your logo:`assets/images/touch`
182
-
183
- ### _post
184
-
185
- Add the following format to your posts:
186
-
187
- ```liquid
188
- {% include tips.html content="protips" %}
189
- {% include note.html content="note" %}
190
- {% include warn.html content="warnings" %}
191
- ```
192
-
193
- [demo](https://blog.kejun.space/living/2017/05/29/jekyll-theme-mdui.html)
194
-
195
- ## TODO
196
-
197
- [TODO](https://blog.kejun.space/pages/menus/todo.html)
198
-
199
- ## Note
200
-
201
- If you use the first method to install, you need to download the following files to your jekyll website root directory Or create a new file,And replace it with your own information:
202
-
203
- * mainifest.json
204
- * sw.js
205
- * search.json
206
- * tags.json
207
- * _data/friends.yml
208
- * _data/menus.yml
209
- * _data/sns.yml
210
- * assets/images/touch/*
211
- * pages/*
212
-
213
- How to use? See Usage.
214
- ## Contributing
215
-
216
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
217
-
218
- ## Development
219
-
220
- To set up your environment to develop this theme, run `bundle install`.
221
-
222
- Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
223
-
224
- When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
225
-
226
- ## License
227
-
228
- The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
229
-
1
+ # jekyll-theme-mdui
2
+
3
+ A Jekyll theme based on mdui
4
+
5
+ [demo](https://blog.kejun.space)
6
+
7
+ [![Version](https://img.shields.io/badge/version-0.2.4-green.svg?style=flat-square)]()
8
+ [![Jekyll](https://img.shields.io/badge/Jekyll-3.4+-green.svg?style=flat-square)](https://jekyllrb.com/)
9
+ [![Gem](https://img.shields.io/gem/dt/jekyll-theme-mdui.svg?style=flat-square)](https://rubygems.org/gems/jekyll-theme-mdui/)
10
+
11
+ [![Code Climate](https://img.shields.io/codeclimate/github/kabisaict/flow.svg?style=flat-square)](https://codeclimate.com/github/KeJunMao/jekyll-theme-mdui/)
12
+ [![Build Status](https://img.shields.io/travis/KeJunMao/jekyll-theme-mdui.svg?style=flat-square)](https://travis-ci.org/KeJunMao/jekyll-theme-mdui)
13
+ [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](http://commitizen.github.io/cz-cli/)
14
+
15
+ [![Author](https://img.shields.io/badge/author-KeJun-blue.svg?style=flat-square)](https://blog.kejun.space)
16
+
17
+ ## Installation
18
+
19
+ We have two ways to install themes.
20
+
21
+ But,**We recommend you use the second ways.**
22
+
23
+ ### First ways
24
+
25
+ Add this line to your Jekyll site's `Gemfile`:
26
+
27
+ ```ruby
28
+ gem "jekyll-theme-mdui"
29
+ ```
30
+
31
+ And add this line to your Jekyll site's `_config.yml`:
32
+
33
+ ```yaml
34
+ theme: jekyll-theme-mdui
35
+ ```
36
+
37
+ And then execute:
38
+
39
+ $ bundle
40
+
41
+ Or install it yourself as:
42
+
43
+ $ gem install jekyll-theme-mdui
44
+
45
+ ### Second ways
46
+
47
+ Fork this repo to your repo:
48
+
49
+ ```shell
50
+ git clone https://github.com/yourname/jekyll-theme-mdui.git
51
+ cd jekyll-theme-mdui
52
+ bundle install
53
+ jekyll s -w
54
+ ```
55
+
56
+ Or **direct clone**:
57
+
58
+ ```shell
59
+ git clone https://github.com/KeJunMao/jekyll-theme-mdui.git
60
+ cd jekyll-theme-mdui
61
+ bundle install
62
+ jekyll s -w
63
+ ```
64
+
65
+ ## Usage
66
+
67
+ ### _config
68
+
69
+ ```yml
70
+ title: "My blog" # Your site title
71
+ description: "This is my blog." # Your site description
72
+ url: # Your site url
73
+ baseurl: # baseurl
74
+ author: "My" # Your name
75
+ avatar: "https://myAvatar.png" # Your avatar
76
+ lang: "zh-CN" # lang
77
+ paginate: 5 # paginate
78
+ paginate_path: "/blog/page:num/" # paginate path
79
+
80
+ disqus_shortname: "" # Your disqus
81
+ disqus_proxy: false # disqus proxy(Do not use)
82
+ disqus_proxy_url: "" # (Do not use)
83
+ disqus_api_key: "" # (Do not use)
84
+
85
+ google_analytics: "" # Your google analytics ID
86
+
87
+ gems: # paginate gem
88
+ - jekyll-paginate
89
+ ```
90
+
91
+ ### _data
92
+
93
+ * friends.yml
94
+ ```yml
95
+ - name: MDUI # name
96
+ image: # avatar or logo
97
+ url: https://www.mdui.org/ # url
98
+ describe: 一套用于开发 Material Design 网页的前端框架
99
+ ```
100
+ * menus.yml
101
+ ```yml
102
+ - name: SEARCH # name
103
+ url: /pages/menus/search.html # path
104
+ icon: search # icon from https://www.mdui.org/docs/material_icon
105
+ ```
106
+ Default does not display the editor.If you want the editor to appear in the menu:
107
+ ```yml
108
+ - name: Editor # name
109
+ url: /pages/editor.html # path
110
+ icon: edit # icon from https://www.mdui.org/docs/material_icon
111
+ ```
112
+ * sns.yml
113
+ ```yml
114
+ - name: bilibili # name,supported:bilibili,facebook,github,gplus,instagram,linkedin,telegram,tumblr,twitter,weibo,zhihu
115
+ url: # url , if it is empty, it is not enabled
116
+ ```
117
+
118
+
119
+ ### search.json
120
+
121
+ ```json
122
+ ---
123
+ ---
124
+ [
125
+ {% for post in site.posts %}
126
+ {
127
+ "title" : "{{ post.title | escape }}",
128
+ "url" : "{{ site.baseurl }}{{ post.url }}"
129
+ } {% unless forloop.last %},{% endunless %}
130
+ {% endfor %}
131
+ ]
132
+ ```
133
+
134
+ ### tags.json
135
+ ```json
136
+ ---
137
+ ---
138
+ {% capture tags %}
139
+ {% for tag in site.tags %}
140
+ {{ tag[0] }}
141
+ {% endfor %}
142
+ {% endcapture %}
143
+ {% assign sortedtags = tags | split:' ' | sort %}
144
+ [
145
+ {% for tag in sortedtags %}
146
+ {
147
+ "id" : "{{ tag | escape}}",
148
+ "post": [
149
+ {% for post in site.tags[tag] %}
150
+ {
151
+ "title": "{{ post.title | escape }}",
152
+ "excerpt": "{{ post.excerpt | strip_html | escape | strip_newlines}}",
153
+ "url": "{{ site.baseurl }}{{ post.url }}"
154
+ } {% unless forloop.last %},{% endunless %}
155
+ {% endfor %}]
156
+ } {% unless forloop.last %},{% endunless %}
157
+ {% endfor %}
158
+ ]
159
+ ```
160
+ ### manifest.json
161
+ ```json
162
+ {
163
+ "name": "KeJun BLOG",
164
+ "short_name": "KeJun",
165
+ "icons": [{
166
+ "src": "assets/images/touch/icon-128x128.png",
167
+ "sizes": "128x128",
168
+ "type": "image/png"
169
+ }, {
170
+ "src": "assets/images/touch/apple-touch-icon.png",
171
+ "sizes": "152x152",
172
+ "type": "image/png"
173
+ }, {
174
+ "src": "assets/images/touch/ms-touch-icon-144x144-precomposed.png",
175
+ "sizes": "144x144",
176
+ "type": "image/png"
177
+ }, {
178
+ "src": "assets/images/touch/chrome-touch-icon-192x192.png",
179
+ "sizes": "192x192",
180
+ "type": "image/png"
181
+ }],
182
+ "start_url": "/index.html?homescreen=1",
183
+ "display": "standalone",
184
+ "background_color": "#fdfdfd",
185
+ "theme_color": "#2a7ae2"
186
+ }
187
+ ```
188
+ Replace it with your logo:`assets/images/touch`
189
+
190
+ ### _post
191
+
192
+ Add the following format to your posts:
193
+
194
+ ```liquid
195
+ {% include tips.html content="protips" %}
196
+ {% include note.html content="note" %}
197
+ {% include warn.html content="warnings" %}
198
+ ```
199
+
200
+ [demo](https://blog.kejun.space/living/2017/05/29/jekyll-theme-mdui.html)
201
+
202
+ ## TODO
203
+
204
+ ...
205
+
206
+ ## Note
207
+
208
+ ### file
209
+ If you use the first ways to install, you need to download the following files to your jekyll website root directory Or create a new file,And replace it with your own information:
210
+
211
+ * mainifest.json
212
+ * sw.js
213
+ * search.json
214
+ * tags.json
215
+ * _data/friends.yml
216
+ * _data/menus.yml
217
+ * _data/sns.yml
218
+ * assets/images/touch/*
219
+ * pages/*
220
+
221
+ How to use? See Usage.
222
+
223
+ ### service workers
224
+
225
+ If you use the first ways to install, You will not be able to use service workers!!!!
226
+
227
+ Why? See `sw.js` content.
228
+ ## Contributing
229
+
230
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
231
+
232
+ ## Development
233
+
234
+ To set up your environment to develop this theme, run `bundle install`.
235
+
236
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
237
+
238
+ When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
239
+
240
+ ## License
241
+
242
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
243
+