jekyll-theme-materialize 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/_includes/script.html +11 -0
- data/_layouts/archive.html +6 -2
- data/_layouts/home.html +6 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a611a8f112ffe4b0086f0297dc72f0d7c453b014
|
4
|
+
data.tar.gz: 0eb796d81889a1535908d89e3af39dee33ca232c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a6a2b06f81376b2ed7b4a9b182d5547b5f50287a3ab11f5b27075a81c80cdefa9f12ff69d4e0781b2393e5aab2db3b06588e777e586c92ff8af1fe21845197f
|
7
|
+
data.tar.gz: 05a2c04e5207f1029cb7f2b4dc8d19bffb14e311fafd1155016db7242088688c344bb2ec087fb4a2dc009008bfac3ca0f004e198c62ae8e7413a8702c3351c59
|
data/README.md
CHANGED
@@ -116,10 +116,14 @@ cdnurl: https://cdnurl.com/ #cdn
|
|
116
116
|
|
117
117
|
#google_analytics
|
118
118
|
google_analytics:
|
119
|
+
|
119
120
|
#多个作者
|
120
121
|
defaultAuthor: KeJun #默认作者
|
121
122
|
defaultAuthorImage: assets/images/tx.jpg #默认作者头像
|
122
123
|
manyAuthors: false
|
124
|
+
|
125
|
+
# 是否使用gallery
|
126
|
+
gallery: false
|
123
127
|
```
|
124
128
|
|
125
129
|
### post
|
@@ -147,7 +151,7 @@ author: # 若指定作者名,请开启多作者功能,否则将
|
|
147
151
|
|
148
152
|
```yaml
|
149
153
|
---
|
150
|
-
layout:
|
154
|
+
layout: home
|
151
155
|
---
|
152
156
|
```
|
153
157
|
|
@@ -314,6 +318,7 @@ footer的各种站点URL,请按如下格式填写至`_data/myherfs.yml`的url即
|
|
314
318
|
* 不依赖ruby gems的i18n
|
315
319
|
* homepage,请看[demo](https://kejun.space/),[仓库地址](https://coding.net/u/KeJun/p/homepage/git)。
|
316
320
|
* 配合homepage ,传入友链和links,当博客更新时,homepage也可以更新。请看[demo](https://kejun.space/#other),[json](https://coding.net/u/KeJun/p/myblog/git/blob/master/assets/postsAndLinks.json)。
|
321
|
+
* gallery 开启与关闭。# 完成
|
317
322
|
|
318
323
|
## License
|
319
324
|
|
data/_includes/script.html
CHANGED
@@ -45,6 +45,17 @@
|
|
45
45
|
});
|
46
46
|
}
|
47
47
|
}).error(function(data, b) { console.log("json解析错误,搜索功能暂不可用,请检查文章title,确保不含有换行等特殊符号"); });
|
48
|
+
{% unless site.gallery %}
|
49
|
+
var posts = $("div.gallery-item");
|
50
|
+
if (posts.attr("data-url")){
|
51
|
+
posts.unbind();
|
52
|
+
posts.click(function(){
|
53
|
+
var postUrl = $(this).attr("data-url")
|
54
|
+
window.location.href=postUrl;
|
55
|
+
})
|
56
|
+
}
|
57
|
+
|
58
|
+
{% endunless %}
|
48
59
|
});
|
49
60
|
|
50
61
|
</script>
|
data/_layouts/archive.html
CHANGED
@@ -9,7 +9,7 @@ layout: default
|
|
9
9
|
{% capture y %}{{post.date | date:"%Y"}}{% endcapture %}
|
10
10
|
{% assign year = y %}
|
11
11
|
{{ y }}
|
12
|
-
ce"><div class="placeholder">
|
12
|
+
ce" data-url="{{ post.url | prepend: site.baseurl }}"><div class="placeholder">
|
13
13
|
<div class="gallery-curve-wrapper">
|
14
14
|
<div class="gallery-header">
|
15
15
|
<span>{{ post.title }}</span>
|
@@ -23,6 +23,7 @@ layout: default
|
|
23
23
|
<hr>
|
24
24
|
<div id="postsContent">{{ post.excerpt }}</div>
|
25
25
|
</div>
|
26
|
+
{% if site.gallery %}
|
26
27
|
<div class="gallery-body">
|
27
28
|
<div class="title-wrapper">
|
28
29
|
<h3>{{ post.title }}</h3>
|
@@ -31,6 +32,7 @@ layout: default
|
|
31
32
|
{{ post.content }}
|
32
33
|
</div>
|
33
34
|
</div>
|
35
|
+
{% endif %}
|
34
36
|
<div class="gallery-action">
|
35
37
|
<!--<a class="btn-floating btn-large waves-effect waves-light pink"><i class="material-icons">favorite</i></a>-->
|
36
38
|
</div>
|
@@ -42,7 +44,7 @@ layout: default
|
|
42
44
|
{% capture y %}{{post.date | date:"%Y"}}{% endcapture %}
|
43
45
|
{% assign year = y %}
|
44
46
|
{{ y }}
|
45
|
-
ce" data-fillscreen="true">
|
47
|
+
ce" data-fillscreen="true" data-url="{{ post.url | prepend: site.baseurl }}">
|
46
48
|
<div class="placeholder">
|
47
49
|
<div class="gallery-curve-wrapper">
|
48
50
|
<a class="gallery-cover gray" style="height: 300px;">
|
@@ -73,6 +75,7 @@ layout: default
|
|
73
75
|
{% endif %}
|
74
76
|
{{ post.date | date: "%b %-d, %Y" }}</p>
|
75
77
|
</div>
|
78
|
+
{% if site.gallery %}
|
76
79
|
<div class="gallery-body">
|
77
80
|
<div id="postsContent" class="title-wrapper">
|
78
81
|
<h3>{{post.title}}</h3>
|
@@ -81,6 +84,7 @@ layout: default
|
|
81
84
|
{{ post.content }}
|
82
85
|
</div>
|
83
86
|
</div>
|
87
|
+
{% endif %}
|
84
88
|
<div class="gallery-action">
|
85
89
|
<!--<a class="btn-floating btn-large waves-effect waves-light"><i class="material-icons">favorite</i></a>-->
|
86
90
|
</div>
|
data/_layouts/home.html
CHANGED
@@ -7,11 +7,10 @@ layout: default
|
|
7
7
|
<div class="b e">
|
8
8
|
{% for post in site.posts %}
|
9
9
|
{% unless post.image %}
|
10
|
-
<div class="d hx hf gu gallery-item gallery-expand {{post.categories}} ce"><div class="placeholder">
|
10
|
+
<div class="d hx hf gu gallery-item gallery-expand {{post.categories}} ce" data-url="{{ post.url | prepend: site.baseurl }}"><div class="placeholder">
|
11
11
|
<div class="gallery-curve-wrapper">
|
12
12
|
<div class="gallery-header">
|
13
13
|
<span>{{ post.title }}</span>
|
14
|
-
|
15
14
|
<p class="gray-text text-lighten-4" style="margin-bottom: 0px;">
|
16
15
|
{% if site.manyAuthors %}
|
17
16
|
<img data-position="bottom" data-delay="50" data-tooltip="{% if post.author %}{{ post.author }}{% else %}{{ site.defaultAuthor }}{% endif %}" class="right tooltipped" style="width: 18px;" src="{% if post.author %}{% for author in site.data.authors %}{% if author.name == post.author%}{{ author.image }}{%endif%}{%endfor%}{% else %}{{ site.defaultAuthorImage }}{% endif %}" alt="">
|
@@ -25,6 +24,7 @@ layout: default
|
|
25
24
|
{{ post.excerpt }}
|
26
25
|
</div>
|
27
26
|
</div>
|
27
|
+
{% if site.gallery %}
|
28
28
|
<div class="gallery-body">
|
29
29
|
<div id="postsContent" class="title-wrapper">
|
30
30
|
<h1>{{ post.title }}</h1>
|
@@ -33,6 +33,7 @@ layout: default
|
|
33
33
|
{{ post.content }}
|
34
34
|
</div>
|
35
35
|
</div>
|
36
|
+
{% endif %}
|
36
37
|
<div class="gallery-action">
|
37
38
|
<!--<a class="btn-floating btn-large waves-effect waves-light green"><i class="material-icons">favorite</i></a>-->
|
38
39
|
</div>
|
@@ -40,7 +41,7 @@ layout: default
|
|
40
41
|
</div>
|
41
42
|
</div>
|
42
43
|
{% else %}
|
43
|
-
<div class="d hx hf gu gallery-item gallery-expand {{post.categories}} ce" data-fillscreen="true">
|
44
|
+
<div class="d hx hf gu gallery-item gallery-expand {{post.categories}} ce" data-fillscreen="true" data-url="{{ post.url | prepend: site.baseurl }}">
|
44
45
|
<div class="placeholder">
|
45
46
|
<div class="gallery-curve-wrapper">
|
46
47
|
<a class="gallery-cover gray" style="height: 300px;">
|
@@ -71,6 +72,7 @@ layout: default
|
|
71
72
|
{% endif %}
|
72
73
|
{{ post.date | date: "%b %-d, %Y" }}</p>
|
73
74
|
</div>
|
75
|
+
{% if site.gallery %}
|
74
76
|
<div class="gallery-body">
|
75
77
|
<div id="postsContent" class="title-wrapper">
|
76
78
|
<h1>{{post.title}}</h1>
|
@@ -79,6 +81,7 @@ layout: default
|
|
79
81
|
{{ post.content }}
|
80
82
|
</div>
|
81
83
|
</div>
|
84
|
+
{% endif %}
|
82
85
|
<div class="gallery-action">
|
83
86
|
<!--<a class="btn-floating btn-large waves-effect waves-light"><i class="material-icons">favorite</i></a>-->
|
84
87
|
</div>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-materialize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- KeJun
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|