jekyll-theme-mdui 0.4.9.2 → 0.4.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_includes/content/paginator_post_list.html +0 -2
- data/_includes/meng/head_card.html +54 -0
- data/_layouts/home.html +13 -0
- data/_layouts/page.html +8 -1
- data/_layouts/post.html +8 -0
- data/assets/css/global.css +14 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c5ce6ace2dd5c80646dea5642d0e15d498f7b78
|
|
4
|
+
data.tar.gz: 250de02e2bb9706a46cfb80e7f0bc86a8581a4b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d9cf862c68a10a469c9ed729184bc395ca02bac61490c6bc9c856c2ee96a7dbb1b56814f483c4ae6cf51fadd68d9d9773991c1527c154518cac72568da322da7
|
|
7
|
+
data.tar.gz: 1c6ba48dfa951e931d8968ecbb4a890567db4dee73c275d5ef400bd9cc25eb0ba49e96ff91c06aa8362fa01d0efc36b707fc82f136fa43227ded757ea75bb73d
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
line-height: 40px;
|
|
24
24
|
}
|
|
25
25
|
</style>
|
|
26
|
-
<div class="k-posts-list">
|
|
27
26
|
{% for post in paginator.posts %}
|
|
28
27
|
<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 %}">
|
|
29
28
|
<div class="mdui-card-media mdui-ripple k-post-media" style="background-image:url({{post.img}})" src="{{post.img}}">
|
|
@@ -52,7 +51,6 @@
|
|
|
52
51
|
</div>
|
|
53
52
|
</div>
|
|
54
53
|
{% endfor %}
|
|
55
|
-
</div>
|
|
56
54
|
<script>
|
|
57
55
|
Array.prototype.forEach.call(document.querySelectorAll(".mdui-card-media"), function(a) {
|
|
58
56
|
var b = a.querySelector("a");
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{% assign head_card = site.data.meng.head_card %}
|
|
2
|
+
<style>
|
|
3
|
+
.k-head-card-media{
|
|
4
|
+
display: block cursor: pointer;
|
|
5
|
+
max-height: 284px;
|
|
6
|
+
min-height: 284px;
|
|
7
|
+
background-position: 50% 50%;
|
|
8
|
+
background-size: cover;
|
|
9
|
+
background-color: white;
|
|
10
|
+
}
|
|
11
|
+
.k-head-card-media a{
|
|
12
|
+
text-decoration: none;
|
|
13
|
+
}
|
|
14
|
+
.k-head-card-content .mdui-card-header-title{
|
|
15
|
+
line-height: 40px;
|
|
16
|
+
margin-left: 0;
|
|
17
|
+
}
|
|
18
|
+
.k-head-card-content .mdui-card-header-avatar{
|
|
19
|
+
margin-right: 12px;
|
|
20
|
+
}
|
|
21
|
+
.mdui-card-media img.k-head-card-img{
|
|
22
|
+
width: 64px;
|
|
23
|
+
margin: 0 auto;
|
|
24
|
+
}
|
|
25
|
+
</style>
|
|
26
|
+
<div class="mdui-row">
|
|
27
|
+
<div class="mdui-col-sm-8">
|
|
28
|
+
<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 %}">
|
|
29
|
+
<div class="mdui-card-media mdui-ripple k-head-card-media" style="background-image:url('{{head_card.left_img}}')">
|
|
30
|
+
<div class="mdui-card-media-covered mdui-card-media-covered-gradient">
|
|
31
|
+
<div class="mdui-card-primary">
|
|
32
|
+
<div class="mdui-card-primary-title"><a class="mdui-text-color-white-text">{{head_card.left_text}}</a></div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="mdui-divider"></div>
|
|
37
|
+
<div class="mdui-card-header k-head-card-content">
|
|
38
|
+
<img class="mdui-card-header-avatar" src="{{site.data.site.img.avatar}}" />
|
|
39
|
+
<div class="mdui-card-header-title">{{site.author}}</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="mdui-col-sm-4">
|
|
44
|
+
<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 %}">
|
|
45
|
+
<div class="mdui-card-media mdui-ripple k-head-card-media mdui-valign">
|
|
46
|
+
<img class="k-head-card-img" src="{{head_card.right_img}}" alt="">
|
|
47
|
+
</div>
|
|
48
|
+
<div class="mdui-divider"></div>
|
|
49
|
+
<div class="mdui-card-header k-head-card-content">
|
|
50
|
+
<div class="mdui-card-header-title">{{site.title}}</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
data/_layouts/home.html
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
layout: default
|
|
3
3
|
---
|
|
4
4
|
<div class="k-container">
|
|
5
|
+
<div class="k-posts-list"></div>
|
|
6
|
+
{% if site.data.site.uiux.meng == true %}
|
|
7
|
+
{% if site.data.meng.head_card.switch == true %}
|
|
8
|
+
{% assign num = site.data.meng.head_card.offset_level %}
|
|
9
|
+
{% for i in (1..num) %}
|
|
10
|
+
<div class="head_card-offset"></div>
|
|
11
|
+
{% endfor %}
|
|
12
|
+
{% if paginator.page == 1 %}
|
|
13
|
+
{% include meng/head_card.html %}
|
|
14
|
+
{% endif %}
|
|
15
|
+
{% endif %}
|
|
16
|
+
{% endif %}
|
|
17
|
+
|
|
5
18
|
{% include content/paginator_post_list.html %}
|
|
6
19
|
{% include content/paginator_button.html %}
|
|
7
20
|
</div>
|
data/_layouts/page.html
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
layout: default
|
|
3
3
|
---
|
|
4
|
-
|
|
4
|
+
{% if site.data.site.uiux.meng == true %}
|
|
5
|
+
{% if site.data.meng.head_card.switch == true %}
|
|
6
|
+
{% assign num = site.data.meng.head_card.offset_level %}
|
|
7
|
+
{% for i in (1..num) %}
|
|
8
|
+
<div class="head_card-offset"></div>
|
|
9
|
+
{% endfor %}
|
|
10
|
+
{% endif %}
|
|
11
|
+
{% endif %}
|
|
5
12
|
{% include content/page_content_no_toc.html %}
|
data/_layouts/post.html
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
layout: default
|
|
3
3
|
---
|
|
4
|
+
{% if site.data.site.uiux.meng == true %}
|
|
5
|
+
{% if site.data.meng.head_card.switch == true %}
|
|
6
|
+
{% assign num = site.data.meng.head_card.offset_level %}
|
|
7
|
+
{% for i in (1..num) %}
|
|
8
|
+
<div class="head_card-offset"></div>
|
|
9
|
+
{% endfor %}
|
|
10
|
+
{% endif %}
|
|
11
|
+
{% endif %}
|
|
4
12
|
{% include content/page_content.html %}
|
data/assets/css/global.css
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
---
|
|
2
2
|
layout: null
|
|
3
3
|
---
|
|
4
|
+
|
|
5
|
+
{% if site.data.site.uiux.meng == true %}
|
|
6
|
+
{% if site.data.meng.head_card.switch == true %}
|
|
7
|
+
.head_card-offset{
|
|
8
|
+
padding-top: 65px;
|
|
9
|
+
}
|
|
10
|
+
@media screen and (max-width: 600px){
|
|
11
|
+
.head_card-offset{
|
|
12
|
+
padding-top: 0px;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
{% endif %}
|
|
16
|
+
{% endif %}
|
|
17
|
+
|
|
4
18
|
body,header{
|
|
5
19
|
background-color:{{site.data.site.background.purecolor}};
|
|
6
20
|
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-theme-mdui
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.9.
|
|
4
|
+
version: 0.4.9.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- KeJun
|
|
@@ -97,6 +97,7 @@ files:
|
|
|
97
97
|
- _includes/meng/card.html
|
|
98
98
|
- _includes/meng/console.html
|
|
99
99
|
- _includes/meng/cursor.html
|
|
100
|
+
- _includes/meng/head_card.html
|
|
100
101
|
- _includes/meng/live2d.html
|
|
101
102
|
- _includes/meng/title.html
|
|
102
103
|
- _layouts/compress.html
|