jekyll-theme-mdui 0.5.2.4 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +21 -21
- data/README.md +88 -89
- data/_includes/analytics/google.html +7 -7
- data/_includes/comment/comment.html +2 -2
- data/_includes/comment/disqus.html +72 -75
- data/_includes/comment/gitment.html +16 -16
- data/_includes/comment/livere.html +42 -26
- data/_includes/comment/valine.html +37 -18
- data/_includes/component/customCssJS.html +7 -7
- data/_includes/component/nprogress.html +24 -24
- data/_includes/component/sw.html +6 -6
- data/_includes/component/totop.html +13 -13
- data/_includes/content/category_list.html +86 -86
- data/_includes/content/category_post_list.html +108 -100
- data/_includes/content/component/highlight.html +11 -11
- data/_includes/content/component/imgboxed.html +304 -304
- data/_includes/content/component/lastupdate.html +35 -35
- data/_includes/content/component/lazyload.html +6 -6
- data/_includes/content/component/page_tags.html +17 -17
- data/_includes/content/component/qrcode.html +26 -26
- data/_includes/content/component/readtime.html +27 -27
- data/_includes/content/component/sns_share.html +42 -42
- data/_includes/content/component/toc.html +84 -84
- data/_includes/content/editor.html +1058 -1058
- data/_includes/content/friends.html +23 -23
- data/_includes/content/love.html +123 -0
- data/_includes/content/page_content.html +92 -87
- data/_includes/content/page_content_no_toc.html +69 -64
- data/_includes/content/paginator_button.html +24 -24
- data/_includes/content/paginator_post_list.html +103 -95
- data/_includes/content/tags_list.html +99 -99
- data/_includes/footer/footer.html +30 -30
- data/_includes/head.html +90 -87
- data/_includes/header/header.html +174 -174
- data/_includes/meng/aplayer.html +100 -100
- data/_includes/meng/background.html +34 -34
- data/_includes/meng/card.html +13 -13
- data/_includes/meng/console.html +10 -10
- data/_includes/meng/cplayer.html +61 -61
- data/_includes/meng/cursor.html +8 -8
- data/_includes/meng/head_card.html +67 -67
- data/_includes/meng/live2d.html +60 -60
- data/_includes/meng/title.html +23 -23
- data/_includes/submission/baidu.html +13 -13
- data/_layouts/category_content.html +3 -3
- data/_layouts/category_list.html +3 -3
- data/_layouts/compress.html +9 -9
- data/_layouts/default.html +49 -49
- data/_layouts/editor.html +4 -4
- data/_layouts/friends.html +3 -3
- data/_layouts/home.html +20 -20
- data/_layouts/love.html +4 -0
- data/_layouts/page.html +12 -12
- data/_layouts/post.html +12 -12
- data/_layouts/tags.html +4 -4
- data/assets/css/global.css +181 -181
- metadata +7 -6
data/_includes/meng/aplayer.html
CHANGED
@@ -1,100 +1,100 @@
|
|
1
|
-
{% assign aplayer = site.data.meng.music_player %}
|
2
|
-
<style>
|
3
|
-
@media screen and (max-width: 600px){
|
4
|
-
.k-music-card{
|
5
|
-
transform:translateX(-250px)
|
6
|
-
}
|
7
|
-
}
|
8
|
-
.k-music-card{
|
9
|
-
width: 270px;
|
10
|
-
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
|
11
|
-
position: fixed;
|
12
|
-
bottom: 155px;
|
13
|
-
z-index: 999;
|
14
|
-
transition: transform .5s ease;
|
15
|
-
}
|
16
|
-
.aplayer{
|
17
|
-
float: left;
|
18
|
-
width: 250px;
|
19
|
-
margin: 0 auto;
|
20
|
-
position: relative;
|
21
|
-
background: rgb(255,255,255);
|
22
|
-
box-sizing: border-box;
|
23
|
-
box-shadow: none;
|
24
|
-
}
|
25
|
-
.k-music-btn{
|
26
|
-
text-align: center;
|
27
|
-
line-height: 66px;
|
28
|
-
color: #fff;
|
29
|
-
width: 20px;
|
30
|
-
height: 66px;
|
31
|
-
background: {{aplayer.button_color}} none repeat scroll 0% 0%;
|
32
|
-
position: relative;
|
33
|
-
right: 0px;
|
34
|
-
bottom: 0px;
|
35
|
-
box-sizing: border-box;
|
36
|
-
border-left: none;
|
37
|
-
cursor: pointer;
|
38
|
-
display: box-shadow:;
|
39
|
-
float: right;
|
40
|
-
}
|
41
|
-
</style>
|
42
|
-
<div class="k-music-card">
|
43
|
-
<div id="player1" class="aplayer"></div>
|
44
|
-
<div class="k-music-btn">></div>
|
45
|
-
</div>
|
46
|
-
|
47
|
-
<script src="https://cdn.bootcss.com/aplayer/1.6.0/APlayer.min.js"></script>
|
48
|
-
<script>
|
49
|
-
var ap = new APlayer({
|
50
|
-
element: document.getElementById('player1'),
|
51
|
-
narrow: false,
|
52
|
-
autoplay: true,
|
53
|
-
showlrc: 0,
|
54
|
-
mutex: true,
|
55
|
-
theme: '#e6d0b2',
|
56
|
-
mode: 'random',
|
57
|
-
preload: 'metadata',
|
58
|
-
listmaxheight: '513px',
|
59
|
-
music:[
|
60
|
-
{% for music in aplayer.music %}
|
61
|
-
{
|
62
|
-
title: '{{music.title}}',
|
63
|
-
author: '{{music.author}}',
|
64
|
-
url: '{{music.url}}',
|
65
|
-
pic: '{{music.pic}}',
|
66
|
-
lrc: '[00:00.00]lrc here\n[00:01.00]aplayer'
|
67
|
-
},
|
68
|
-
{% endfor %}
|
69
|
-
]
|
70
|
-
});
|
71
|
-
|
72
|
-
$(".aplayer-list").addClass("aplayer-list-hide");
|
73
|
-
if($(window).width()<=600){
|
74
|
-
var flag = true;
|
75
|
-
}else{
|
76
|
-
var flag = false;
|
77
|
-
}
|
78
|
-
|
79
|
-
$('.k-music-btn').click(function(){
|
80
|
-
if (flag == false){
|
81
|
-
$('.k-music-card').css('transform','translateX(-250px)');
|
82
|
-
flag = true;
|
83
|
-
}else if(flag == true){
|
84
|
-
$('.k-music-card').css('transform','translateX(0px)');
|
85
|
-
flag = false;
|
86
|
-
}
|
87
|
-
|
88
|
-
if (!$(".aplayer-list").hasClass('aplayer-list-hide')) {
|
89
|
-
$(".aplayer-list").addClass('aplayer-list-hide');
|
90
|
-
}
|
91
|
-
});
|
92
|
-
document.addEventListener("visibilitychange", function() {
|
93
|
-
if(document.visibilityState == "hidden" ){
|
94
|
-
ap.pause();
|
95
|
-
}
|
96
|
-
if(document.visibilityState == "visible"){
|
97
|
-
ap.play();
|
98
|
-
}
|
99
|
-
}, false);
|
100
|
-
</script>
|
1
|
+
{% assign aplayer = site.data.meng.music_player %}
|
2
|
+
<style>
|
3
|
+
@media screen and (max-width: 600px){
|
4
|
+
.k-music-card{
|
5
|
+
transform:translateX(-250px)
|
6
|
+
}
|
7
|
+
}
|
8
|
+
.k-music-card{
|
9
|
+
width: 270px;
|
10
|
+
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
|
11
|
+
position: fixed;
|
12
|
+
bottom: 155px;
|
13
|
+
z-index: 999;
|
14
|
+
transition: transform .5s ease;
|
15
|
+
}
|
16
|
+
.aplayer{
|
17
|
+
float: left;
|
18
|
+
width: 250px;
|
19
|
+
margin: 0 auto;
|
20
|
+
position: relative;
|
21
|
+
background: rgb(255,255,255);
|
22
|
+
box-sizing: border-box;
|
23
|
+
box-shadow: none;
|
24
|
+
}
|
25
|
+
.k-music-btn{
|
26
|
+
text-align: center;
|
27
|
+
line-height: 66px;
|
28
|
+
color: #fff;
|
29
|
+
width: 20px;
|
30
|
+
height: 66px;
|
31
|
+
background: {{aplayer.button_color}} none repeat scroll 0% 0%;
|
32
|
+
position: relative;
|
33
|
+
right: 0px;
|
34
|
+
bottom: 0px;
|
35
|
+
box-sizing: border-box;
|
36
|
+
border-left: none;
|
37
|
+
cursor: pointer;
|
38
|
+
display: box-shadow:;
|
39
|
+
float: right;
|
40
|
+
}
|
41
|
+
</style>
|
42
|
+
<div class="k-music-card">
|
43
|
+
<div id="player1" class="aplayer"></div>
|
44
|
+
<div class="k-music-btn">></div>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<script src="https://cdn.bootcss.com/aplayer/1.6.0/APlayer.min.js"></script>
|
48
|
+
<script>
|
49
|
+
var ap = new APlayer({
|
50
|
+
element: document.getElementById('player1'),
|
51
|
+
narrow: false,
|
52
|
+
autoplay: true,
|
53
|
+
showlrc: 0,
|
54
|
+
mutex: true,
|
55
|
+
theme: '#e6d0b2',
|
56
|
+
mode: 'random',
|
57
|
+
preload: 'metadata',
|
58
|
+
listmaxheight: '513px',
|
59
|
+
music:[
|
60
|
+
{% for music in aplayer.music %}
|
61
|
+
{
|
62
|
+
title: '{{music.title}}',
|
63
|
+
author: '{{music.author}}',
|
64
|
+
url: '{{music.url}}',
|
65
|
+
pic: '{{music.pic}}',
|
66
|
+
lrc: '[00:00.00]lrc here\n[00:01.00]aplayer'
|
67
|
+
},
|
68
|
+
{% endfor %}
|
69
|
+
]
|
70
|
+
});
|
71
|
+
|
72
|
+
$(".aplayer-list").addClass("aplayer-list-hide");
|
73
|
+
if($(window).width()<=600){
|
74
|
+
var flag = true;
|
75
|
+
}else{
|
76
|
+
var flag = false;
|
77
|
+
}
|
78
|
+
|
79
|
+
$('.k-music-btn').click(function(){
|
80
|
+
if (flag == false){
|
81
|
+
$('.k-music-card').css('transform','translateX(-250px)');
|
82
|
+
flag = true;
|
83
|
+
}else if(flag == true){
|
84
|
+
$('.k-music-card').css('transform','translateX(0px)');
|
85
|
+
flag = false;
|
86
|
+
}
|
87
|
+
|
88
|
+
if (!$(".aplayer-list").hasClass('aplayer-list-hide')) {
|
89
|
+
$(".aplayer-list").addClass('aplayer-list-hide');
|
90
|
+
}
|
91
|
+
});
|
92
|
+
document.addEventListener("visibilitychange", function() {
|
93
|
+
if(document.visibilityState == "hidden" ){
|
94
|
+
ap.pause();
|
95
|
+
}
|
96
|
+
if(document.visibilityState == "visible"){
|
97
|
+
ap.play();
|
98
|
+
}
|
99
|
+
}, false);
|
100
|
+
</script>
|
@@ -1,35 +1,35 @@
|
|
1
|
-
{% if site.data.meng.background.switch == true %}
|
2
|
-
<style>
|
3
|
-
body{
|
4
|
-
background-image: url({{site.data.meng.background.background_img}});
|
5
|
-
background-size: cover;
|
6
|
-
background-position: 50% 50%;
|
7
|
-
background-attachment: fixed;
|
8
|
-
background-repeat: no-repeat;
|
9
|
-
}
|
10
|
-
#toc-card{
|
11
|
-
background-color:transparent;
|
12
|
-
}
|
13
|
-
#toc a{
|
14
|
-
color: {{site.data.meng.background.text_color}};
|
15
|
-
}
|
16
|
-
</style>
|
17
|
-
|
18
|
-
{% if site.data.meng.background.transparent_header == true %}
|
19
|
-
<style>
|
20
|
-
header{
|
21
|
-
background-color:rgba(0, 0, 0, 0);
|
22
|
-
color: {{site.data.meng.background.text_color}};
|
23
|
-
}
|
24
|
-
</style>
|
25
|
-
|
26
|
-
{% endif %}
|
27
|
-
{% if site.data.meng.background.transparent_footer == true %}
|
28
|
-
<style>
|
29
|
-
footer .mdui-card{
|
30
|
-
color: {{site.data.meng.background.text_color}};
|
31
|
-
background-color:rgba(0, 0, 0, 0);
|
32
|
-
}
|
33
|
-
</style>
|
34
|
-
{% endif %}
|
1
|
+
{% if site.data.meng.background.switch == true %}
|
2
|
+
<style>
|
3
|
+
body{
|
4
|
+
background-image: url({{site.data.meng.background.background_img}});
|
5
|
+
background-size: cover;
|
6
|
+
background-position: 50% 50%;
|
7
|
+
background-attachment: fixed;
|
8
|
+
background-repeat: no-repeat;
|
9
|
+
}
|
10
|
+
#toc-card{
|
11
|
+
background-color:transparent;
|
12
|
+
}
|
13
|
+
#toc a{
|
14
|
+
color: {{site.data.meng.background.text_color}};
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
|
18
|
+
{% if site.data.meng.background.transparent_header == true %}
|
19
|
+
<style>
|
20
|
+
header{
|
21
|
+
background-color:rgba(0, 0, 0, 0);
|
22
|
+
color: {{site.data.meng.background.text_color}};
|
23
|
+
}
|
24
|
+
</style>
|
25
|
+
|
26
|
+
{% endif %}
|
27
|
+
{% if site.data.meng.background.transparent_footer == true %}
|
28
|
+
<style>
|
29
|
+
footer .mdui-card{
|
30
|
+
color: {{site.data.meng.background.text_color}};
|
31
|
+
background-color:rgba(0, 0, 0, 0);
|
32
|
+
}
|
33
|
+
</style>
|
34
|
+
{% endif %}
|
35
35
|
{% endif %}
|
data/_includes/meng/card.html
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
<style>
|
2
|
-
.k-list-card{
|
3
|
-
background-color:{{site.data.meng.card.background_color}};
|
4
|
-
}
|
5
|
-
.k-container.mdui-card{
|
6
|
-
background-color:{{site.data.meng.card.background_color}};
|
7
|
-
}
|
8
|
-
.k-friend .mdui-card{
|
9
|
-
background-color:{{site.data.meng.card.background_color}};
|
10
|
-
}
|
11
|
-
.k-post-media{
|
12
|
-
opacity: {{site.data.meng.card.card_img_opacity}};
|
13
|
-
}
|
1
|
+
<style>
|
2
|
+
.k-list-card{
|
3
|
+
background-color:{{site.data.meng.card.background_color}};
|
4
|
+
}
|
5
|
+
.k-container.mdui-card{
|
6
|
+
background-color:{{site.data.meng.card.background_color}};
|
7
|
+
}
|
8
|
+
.k-friend .mdui-card{
|
9
|
+
background-color:{{site.data.meng.card.background_color}};
|
10
|
+
}
|
11
|
+
.k-post-media{
|
12
|
+
opacity: {{site.data.meng.card.card_img_opacity}};
|
13
|
+
}
|
14
14
|
</style>
|
data/_includes/meng/console.html
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
{% if site.data.meng.console.switch == true %}
|
2
|
-
{% if site.data.meng.console.theme_info == true %}
|
3
|
-
<script>
|
4
|
-
console.info("\n %c © Jekyll Theme MDUI | Version: 0.5.
|
5
|
-
</script>
|
6
|
-
{% endif %}
|
7
|
-
<script>
|
8
|
-
console.info("\n %c {{site.data.meng.console.text}} \n\n", "color: {{site.data.meng.console.color}}; background: {{site.data.meng.console.background}}; padding:5px 0; border-radius: 5px 5px 5px 5px;");
|
9
|
-
</script>
|
10
|
-
{% endif %}
|
1
|
+
{% if site.data.meng.console.switch == true %}
|
2
|
+
{% if site.data.meng.console.theme_info == true %}
|
3
|
+
<script>
|
4
|
+
console.info("\n %c © Jekyll Theme MDUI | Version: 0.5.3 | https://github.com/KeJunMao/jekyll-theme-mdui \n\n", "color: {{site.data.meng.console.color}}; background:{{site.data.meng.console.background}}; padding:5px 0; border-radius: 5px 5px 5px 5px;");
|
5
|
+
</script>
|
6
|
+
{% endif %}
|
7
|
+
<script>
|
8
|
+
console.info("\n %c {{site.data.meng.console.text}} \n\n", "color: {{site.data.meng.console.color}}; background: {{site.data.meng.console.background}}; padding:5px 0; border-radius: 5px 5px 5px 5px;");
|
9
|
+
</script>
|
10
|
+
{% endif %}
|
data/_includes/meng/cplayer.html
CHANGED
@@ -1,62 +1,62 @@
|
|
1
|
-
{% assign cplayer = site.data.meng.music_player %}
|
2
|
-
<style>
|
3
|
-
#k-cplayer{
|
4
|
-
position: fixed;
|
5
|
-
bottom: 130px;
|
6
|
-
-webkit-box-shadow: rgba(0, 0, 0, 0.117647) 0px 1px 6px, rgba(0, 0, 0, 0.117647) 0px 1px 4px;
|
7
|
-
box-shadow: rgba(0, 0, 0, 0.117647) 0px 1px 6px, rgba(0, 0, 0, 0.117647) 0px 1px 4px;
|
8
|
-
transition: transform .5s ease;
|
9
|
-
}
|
10
|
-
|
11
|
-
@media screen and (max-width: 600px){
|
12
|
-
#k-cplayer{
|
13
|
-
transform:translateX(-300px)
|
14
|
-
}
|
15
|
-
}
|
16
|
-
</style>
|
17
|
-
<script src="https://cdn.bootcss.com/cplayer/3.1.3/cplayer.js"></script>
|
18
|
-
<div id="k-cplayer">
|
19
|
-
<div class="k-music-btn">></div>
|
20
|
-
</div>
|
21
|
-
<script>
|
22
|
-
jQuery(document).ready(function ($) {
|
23
|
-
var player = new cplayer({
|
24
|
-
element: document.getElementById('k-cplayer'),
|
25
|
-
playlist: [
|
26
|
-
{% for music in cplayer.music %}
|
27
|
-
{
|
28
|
-
src: '{{music.url}}',
|
29
|
-
poster: '{{music.pic}}',
|
30
|
-
name: '{{music.title}}',
|
31
|
-
artist: '{{music.author}}',
|
32
|
-
},
|
33
|
-
{% endfor %}
|
34
|
-
]
|
35
|
-
});
|
36
|
-
if($(window).width()<=600){
|
37
|
-
var flag = true;
|
38
|
-
}else{
|
39
|
-
var flag = false;
|
40
|
-
}
|
41
|
-
|
42
|
-
$('.k-music-btn').click(function(){
|
43
|
-
if (flag == false){
|
44
|
-
$('#k-cplayer').css('transform','translateX(-300px)');
|
45
|
-
flag = true;
|
46
|
-
}else if(flag == true){
|
47
|
-
$('#k-cplayer').css('transform','translateX(0px)');
|
48
|
-
flag = false;
|
49
|
-
}
|
50
|
-
});
|
51
|
-
document.addEventListener("visibilitychange", function() {
|
52
|
-
if(document.visibilityState == "hidden" ){
|
53
|
-
player.pause();
|
54
|
-
}
|
55
|
-
if(document.visibilityState == "visible"){
|
56
|
-
if($(window).width()>600){
|
57
|
-
player.play();
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}, false);
|
61
|
-
})
|
1
|
+
{% assign cplayer = site.data.meng.music_player %}
|
2
|
+
<style>
|
3
|
+
#k-cplayer{
|
4
|
+
position: fixed;
|
5
|
+
bottom: 130px;
|
6
|
+
-webkit-box-shadow: rgba(0, 0, 0, 0.117647) 0px 1px 6px, rgba(0, 0, 0, 0.117647) 0px 1px 4px;
|
7
|
+
box-shadow: rgba(0, 0, 0, 0.117647) 0px 1px 6px, rgba(0, 0, 0, 0.117647) 0px 1px 4px;
|
8
|
+
transition: transform .5s ease;
|
9
|
+
}
|
10
|
+
|
11
|
+
@media screen and (max-width: 600px){
|
12
|
+
#k-cplayer{
|
13
|
+
transform:translateX(-300px)
|
14
|
+
}
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
<script src="https://cdn.bootcss.com/cplayer/3.1.3/cplayer.js"></script>
|
18
|
+
<div id="k-cplayer">
|
19
|
+
<div class="k-music-btn">></div>
|
20
|
+
</div>
|
21
|
+
<script>
|
22
|
+
jQuery(document).ready(function ($) {
|
23
|
+
var player = new cplayer({
|
24
|
+
element: document.getElementById('k-cplayer'),
|
25
|
+
playlist: [
|
26
|
+
{% for music in cplayer.music %}
|
27
|
+
{
|
28
|
+
src: '{{music.url}}',
|
29
|
+
poster: '{{music.pic}}',
|
30
|
+
name: '{{music.title}}',
|
31
|
+
artist: '{{music.author}}',
|
32
|
+
},
|
33
|
+
{% endfor %}
|
34
|
+
]
|
35
|
+
});
|
36
|
+
if($(window).width()<=600){
|
37
|
+
var flag = true;
|
38
|
+
}else{
|
39
|
+
var flag = false;
|
40
|
+
}
|
41
|
+
|
42
|
+
$('.k-music-btn').click(function(){
|
43
|
+
if (flag == false){
|
44
|
+
$('#k-cplayer').css('transform','translateX(-300px)');
|
45
|
+
flag = true;
|
46
|
+
}else if(flag == true){
|
47
|
+
$('#k-cplayer').css('transform','translateX(0px)');
|
48
|
+
flag = false;
|
49
|
+
}
|
50
|
+
});
|
51
|
+
document.addEventListener("visibilitychange", function() {
|
52
|
+
if(document.visibilityState == "hidden" ){
|
53
|
+
player.pause();
|
54
|
+
}
|
55
|
+
if(document.visibilityState == "visible"){
|
56
|
+
if($(window).width()>600){
|
57
|
+
player.play();
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}, false);
|
61
|
+
})
|
62
62
|
</script>
|
data/_includes/meng/cursor.html
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
<style>
|
2
|
-
body{
|
3
|
-
cursor:url({{site.data.meng.cursor.auto_url}}), auto;
|
4
|
-
}
|
5
|
-
a,.mdui-btn,.k-post-media{
|
6
|
-
cursor:url({{site.data.meng.cursor.pointer_url}}), pointer;
|
7
|
-
}
|
8
|
-
</style>
|
1
|
+
<style>
|
2
|
+
body{
|
3
|
+
cursor:url({{site.data.meng.cursor.auto_url}}), auto;
|
4
|
+
}
|
5
|
+
a,.mdui-btn,.k-post-media{
|
6
|
+
cursor:url({{site.data.meng.cursor.pointer_url}}), pointer;
|
7
|
+
}
|
8
|
+
</style>
|