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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +21 -21
  3. data/README.md +88 -89
  4. data/_includes/analytics/google.html +7 -7
  5. data/_includes/comment/comment.html +2 -2
  6. data/_includes/comment/disqus.html +72 -75
  7. data/_includes/comment/gitment.html +16 -16
  8. data/_includes/comment/livere.html +42 -26
  9. data/_includes/comment/valine.html +37 -18
  10. data/_includes/component/customCssJS.html +7 -7
  11. data/_includes/component/nprogress.html +24 -24
  12. data/_includes/component/sw.html +6 -6
  13. data/_includes/component/totop.html +13 -13
  14. data/_includes/content/category_list.html +86 -86
  15. data/_includes/content/category_post_list.html +108 -100
  16. data/_includes/content/component/highlight.html +11 -11
  17. data/_includes/content/component/imgboxed.html +304 -304
  18. data/_includes/content/component/lastupdate.html +35 -35
  19. data/_includes/content/component/lazyload.html +6 -6
  20. data/_includes/content/component/page_tags.html +17 -17
  21. data/_includes/content/component/qrcode.html +26 -26
  22. data/_includes/content/component/readtime.html +27 -27
  23. data/_includes/content/component/sns_share.html +42 -42
  24. data/_includes/content/component/toc.html +84 -84
  25. data/_includes/content/editor.html +1058 -1058
  26. data/_includes/content/friends.html +23 -23
  27. data/_includes/content/love.html +123 -0
  28. data/_includes/content/page_content.html +92 -87
  29. data/_includes/content/page_content_no_toc.html +69 -64
  30. data/_includes/content/paginator_button.html +24 -24
  31. data/_includes/content/paginator_post_list.html +103 -95
  32. data/_includes/content/tags_list.html +99 -99
  33. data/_includes/footer/footer.html +30 -30
  34. data/_includes/head.html +90 -87
  35. data/_includes/header/header.html +174 -174
  36. data/_includes/meng/aplayer.html +100 -100
  37. data/_includes/meng/background.html +34 -34
  38. data/_includes/meng/card.html +13 -13
  39. data/_includes/meng/console.html +10 -10
  40. data/_includes/meng/cplayer.html +61 -61
  41. data/_includes/meng/cursor.html +8 -8
  42. data/_includes/meng/head_card.html +67 -67
  43. data/_includes/meng/live2d.html +60 -60
  44. data/_includes/meng/title.html +23 -23
  45. data/_includes/submission/baidu.html +13 -13
  46. data/_layouts/category_content.html +3 -3
  47. data/_layouts/category_list.html +3 -3
  48. data/_layouts/compress.html +9 -9
  49. data/_layouts/default.html +49 -49
  50. data/_layouts/editor.html +4 -4
  51. data/_layouts/friends.html +3 -3
  52. data/_layouts/home.html +20 -20
  53. data/_layouts/love.html +4 -0
  54. data/_layouts/page.html +12 -12
  55. data/_layouts/post.html +12 -12
  56. data/_layouts/tags.html +4 -4
  57. data/assets/css/global.css +181 -181
  58. metadata +7 -6
@@ -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 %}
@@ -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>
@@ -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.2 | 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 %}
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 %}
@@ -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>
@@ -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>