jekyll-theme-mdui 0.5.1 → 0.5.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fd5eb8e0357e7462763b9662be5dd1fd514cade
|
4
|
+
data.tar.gz: 2ced8de44fac7047fbc9c71d4ca10a809088c49b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bff1a34174576e576052a8780459b17f5208075e1341352862baaf61c5615818c88bbdc42d4ad97b0901f8eb23a3045048b2fc877030fd590cfc0b79e86014bd
|
7
|
+
data.tar.gz: 65150fa6ae4a648fb20ad28be31f8df0df0eb31a1971dce35f8bc8752ac112a822eb0d6877987072b9c7209bb9dab1dfc12192f46aa3b014b65306272d712c11
|
data/README.md
CHANGED
@@ -46,16 +46,17 @@
|
|
46
46
|
|
47
47
|
## TODO
|
48
48
|
|
49
|
-
- [
|
50
|
-
- [
|
51
|
-
- [
|
49
|
+
- [x] Category - Better style
|
50
|
+
- [x] Tags - Better style
|
51
|
+
- [x] Site style - More custom options
|
52
52
|
- [x] Editor
|
53
53
|
- [x] Posts - Last update date
|
54
54
|
- [x] Posts - Reading time
|
55
55
|
- [x] Posts - Code highlighting
|
56
|
-
- [
|
57
|
-
- [
|
56
|
+
- [x] Meng - Immersive status bar from image
|
57
|
+
- [x] Comment - Add More
|
58
58
|
- [ ] Analytics - Add More
|
59
|
+
- [ ] Fix many bugs
|
59
60
|
|
60
61
|
## Note
|
61
62
|
|
@@ -0,0 +1,87 @@
|
|
1
|
+
<div class="k-posts-list"></div>
|
2
|
+
<style>
|
3
|
+
.k-list-card{
|
4
|
+
margin-bottom: 45px;
|
5
|
+
}
|
6
|
+
.k-post-media {
|
7
|
+
display:block
|
8
|
+
cursor: pointer;
|
9
|
+
max-height: 245px;
|
10
|
+
min-height: 245px;
|
11
|
+
background-position: 50% 50%;
|
12
|
+
background-size: cover;
|
13
|
+
background-color: #303033;
|
14
|
+
}
|
15
|
+
.k-post-media .mdui-card-primary-title a {
|
16
|
+
text-decoration: none;
|
17
|
+
}
|
18
|
+
.k-post-categories {
|
19
|
+
line-height: 40px;
|
20
|
+
}
|
21
|
+
.k-noimg{
|
22
|
+
padding-left: 16px;
|
23
|
+
}
|
24
|
+
.k-noimg h1::before{
|
25
|
+
content: "“";
|
26
|
+
}
|
27
|
+
.k-noimg h1::after{
|
28
|
+
content: "”";
|
29
|
+
}
|
30
|
+
.k-noimg h1:before,.k-noimg h1:after{
|
31
|
+
display: block;
|
32
|
+
font-size: 80px;
|
33
|
+
margin-top: 40px;
|
34
|
+
}
|
35
|
+
.k-noimg a,.k-noimg h1{
|
36
|
+
text-decoration: none;
|
37
|
+
color: white;
|
38
|
+
font-size: 24px;
|
39
|
+
font-weight: inherit;
|
40
|
+
}
|
41
|
+
</style>
|
42
|
+
<div class="mdui-row-md-3 mdui-row-sm-2">
|
43
|
+
{% for category in site.categories %}
|
44
|
+
<div class="mdui-col">
|
45
|
+
<div class="mdui-card k-list-card mdui-shadow-{{site.data.site.card.card_shadow}} {% if site.data.site.card.card_hoverable == true%}mdui-hoverable{% endif %}">
|
46
|
+
{% assign havedata = false %}
|
47
|
+
{% for catedata in site.data.category %}
|
48
|
+
{% capture catename %}{{category|first}}{% endcapture %}
|
49
|
+
{% if catename == catedata.name %}
|
50
|
+
{% if catedata.img != null %}
|
51
|
+
<div class="mdui-card-media mdui-ripple k-post-media lazy" data-original="{{catedata.img}}" style="background-image:url()">
|
52
|
+
<div class="mdui-card-media-covered mdui-card-media-covered-gradient">
|
53
|
+
<div class="mdui-card-primary">
|
54
|
+
<div class="mdui-card-primary-title"><a class="mdui-text-color-white-text" href="{{ "/category" | prepend: site.baseurl }}/{{category|first}}.html">{{category|first}} <span class="mdui-text-color-blue">({{category | last | size}})</span></a></div>
|
55
|
+
</div>
|
56
|
+
</div>
|
57
|
+
</div>
|
58
|
+
{% assign havedata = true %}
|
59
|
+
{% else %}
|
60
|
+
<div class="mdui-card-media mdui-ripple k-post-media mdui-valign k-noimg">
|
61
|
+
<h1><a href="{{ "/category" | prepend: site.baseurl }}/{{category|first}}.html">{{category|first}} <span class="mdui-text-color-blue">({{category | last | size}})</span></a></h3>
|
62
|
+
</div>
|
63
|
+
{% assign havedata = true %}
|
64
|
+
{% endif %}
|
65
|
+
{% endif %}
|
66
|
+
{% if havedata == false %}
|
67
|
+
<div class="mdui-card-media mdui-ripple k-post-media mdui-valign k-noimg">
|
68
|
+
<h1><a href="{{ "/category" | prepend: site.baseurl }}/{{category|first}}.html">{{category|first}} <span class="mdui-text-color-blue">({{category | last | size}})</span></a></h3>
|
69
|
+
</div>
|
70
|
+
{% endif %}
|
71
|
+
{% endfor %}
|
72
|
+
</div>
|
73
|
+
</div>
|
74
|
+
{% endfor %}
|
75
|
+
</div>
|
76
|
+
{% include content/component/lazyload.html %}
|
77
|
+
<script>
|
78
|
+
Array.prototype.forEach.call(document.querySelectorAll(".mdui-card-media"), function(a) {
|
79
|
+
var b = a.querySelector("a");
|
80
|
+
if (!b) {
|
81
|
+
return
|
82
|
+
}
|
83
|
+
a.addEventListener("click", function() {
|
84
|
+
b.click();
|
85
|
+
})
|
86
|
+
});
|
87
|
+
</script>
|
@@ -0,0 +1,101 @@
|
|
1
|
+
{% if site.data.site.lang == 'zh-CN' %}
|
2
|
+
{% assign lang = site.data.lang[site.data.site.lang] %}
|
3
|
+
{% else %}
|
4
|
+
{% assign lang = site.data.lang.en-US %}
|
5
|
+
{% endif %}
|
6
|
+
{% assign filename = page.url | replace_first: '/', '' | replace: '/', '' | replace: '.html', '' | replace: 'category', '' %}
|
7
|
+
{{filename}}
|
8
|
+
<div class="k-posts-list"></div>
|
9
|
+
|
10
|
+
<style>
|
11
|
+
.k-list-card{
|
12
|
+
margin-bottom: 45px;
|
13
|
+
}
|
14
|
+
.k-post-media {
|
15
|
+
display:block
|
16
|
+
cursor: pointer;
|
17
|
+
max-height: 245px;
|
18
|
+
min-height: 245px;
|
19
|
+
background-position: 50% 50%;
|
20
|
+
background-size: cover;
|
21
|
+
background-color: #303033;
|
22
|
+
}
|
23
|
+
.k-post-media .mdui-card-primary-title a {
|
24
|
+
text-decoration: none;
|
25
|
+
}
|
26
|
+
.k-post-categories {
|
27
|
+
line-height: 40px;
|
28
|
+
}
|
29
|
+
.k-noimg{
|
30
|
+
padding-left: 16px;
|
31
|
+
}
|
32
|
+
.k-noimg h1::before{
|
33
|
+
content: "“";
|
34
|
+
}
|
35
|
+
.k-noimg h1::after{
|
36
|
+
content: "”";
|
37
|
+
}
|
38
|
+
.k-noimg h1:before,.k-noimg h1:after{
|
39
|
+
display: block;
|
40
|
+
font-size: 80px;
|
41
|
+
margin-top: 40px;
|
42
|
+
}
|
43
|
+
.k-noimg a,.k-noimg h1{
|
44
|
+
text-decoration: none;
|
45
|
+
color: white;
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
<div class="k-container">
|
49
|
+
{% for post in site.categories[filename] %}
|
50
|
+
<div class="mdui-card k-list-card mdui-shadow-{{site.data.site.card.card_shadow}} {% if site.data.site.card.card_hoverable == true%}mdui-hoverable{% endif %}">
|
51
|
+
{% if post.img == "" or post.img == null %}
|
52
|
+
<div class="mdui-card-media mdui-ripple k-post-media mdui-valign k-noimg">
|
53
|
+
<h1><a href="{{post.url| prepend: site.baseurl}}">{{post.title}}</a></h3>
|
54
|
+
</div>
|
55
|
+
{% else %}
|
56
|
+
<div class="mdui-card-media mdui-ripple k-post-media lazy" data-original="{{post.img}}" style="background-image:url()">
|
57
|
+
<div class="mdui-card-media-covered mdui-card-media-covered-gradient">
|
58
|
+
<div class="mdui-card-primary">
|
59
|
+
<div class="mdui-card-primary-title"><a class="mdui-text-color-white-text" href="{{post.url| prepend: site.baseurl}}">{{post.title}}</a></div>
|
60
|
+
</div>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
{% endif %}
|
64
|
+
<div class="mdui-card-content mdui-text-color-black-secondary mdui-typo">
|
65
|
+
{{ post.excerpt | strip_html}} <a href="{{post.url | prepend: site.baseurl}}">{{lang.post.continue}}</a>
|
66
|
+
</div>
|
67
|
+
<div class="mdui-divider"></div>
|
68
|
+
<div class="mdui-card-header">
|
69
|
+
<div class="mdui-card-menu mdui-typo">
|
70
|
+
<a class="k-post-categories" href="{{ "/category" | prepend: site.baseurl }}/{{post.categories}}.html">{{post.categories}}</a>
|
71
|
+
</div>
|
72
|
+
{% if site.data.site.many_authors == true %}
|
73
|
+
{% if post.author != null %}
|
74
|
+
{% assign author = site.data.authors[post.author] %}
|
75
|
+
<img class="mdui-card-header-avatar" src="{{author.avatar}}" />
|
76
|
+
<div class="mdui-card-header-title">{{author.name}}</div>
|
77
|
+
{% else %}
|
78
|
+
<img class="mdui-card-header-avatar" src="{{site.data.site.img.avatar}}" />
|
79
|
+
<div class="mdui-card-header-title">{{site.author}}</div>
|
80
|
+
{% endif %}
|
81
|
+
{% else %}
|
82
|
+
<img class="mdui-card-header-avatar" src="{{site.data.site.img.avatar}}" />
|
83
|
+
<div class="mdui-card-header-title">{{site.author}}</div>
|
84
|
+
{% endif %}
|
85
|
+
<div class="mdui-card-header-subtitle">{{ post.date | date: "%b %-d, %Y" }}</div>
|
86
|
+
</div>
|
87
|
+
</div>
|
88
|
+
{% endfor %}
|
89
|
+
</div>
|
90
|
+
{% include content/component/lazyload.html %}
|
91
|
+
<script>
|
92
|
+
Array.prototype.forEach.call(document.querySelectorAll(".mdui-card-media"), function(a) {
|
93
|
+
var b = a.querySelector("a");
|
94
|
+
if (!b) {
|
95
|
+
return
|
96
|
+
}
|
97
|
+
a.addEventListener("click", function() {
|
98
|
+
b.click();
|
99
|
+
})
|
100
|
+
});
|
101
|
+
</script>
|
@@ -62,12 +62,7 @@
|
|
62
62
|
<div class="mdui-divider"></div>
|
63
63
|
<div class="mdui-card-header">
|
64
64
|
<div class="mdui-card-menu mdui-typo">
|
65
|
-
{
|
66
|
-
{% if p.layout == "category" %}
|
67
|
-
{% assign ca = p.url %}
|
68
|
-
{% endif %}
|
69
|
-
{% endfor %}
|
70
|
-
<a class="k-post-categories" href="{{ca | prepend: site.baseurl }}?category={{post.categories}}">{{post.categories}}</a>
|
65
|
+
<a class="k-post-categories" href="{{ "/category" | prepend: site.baseurl }}/{{post.categories}}.html">{{post.categories}}</a>
|
71
66
|
</div>
|
72
67
|
{% if site.data.site.many_authors == true %}
|
73
68
|
{% if post.author != null %}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-mdui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.1
|
4
|
+
version: 0.5.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- KeJun
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -83,6 +83,8 @@ files:
|
|
83
83
|
- _includes/component/nprogress.html
|
84
84
|
- _includes/component/sw.html
|
85
85
|
- _includes/component/totop.html
|
86
|
+
- _includes/content/category_list.html
|
87
|
+
- _includes/content/category_post_list.html
|
86
88
|
- _includes/content/component/highlight.html
|
87
89
|
- _includes/content/component/imgboxed.html
|
88
90
|
- _includes/content/component/lastupdate.html
|
@@ -110,6 +112,8 @@ files:
|
|
110
112
|
- _includes/meng/head_card.html
|
111
113
|
- _includes/meng/live2d.html
|
112
114
|
- _includes/meng/title.html
|
115
|
+
- _layouts/category_content.html
|
116
|
+
- _layouts/category_list.html
|
113
117
|
- _layouts/compress.html
|
114
118
|
- _layouts/default.html
|
115
119
|
- _layouts/editor.html
|