jekyll-theme-mdui 0.5.2.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) 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 +9 -3
  6. data/_includes/comment/disqus.html +73 -75
  7. data/_includes/comment/gitment.html +16 -16
  8. data/_includes/comment/livere.html +38 -27
  9. data/_includes/comment/valine.html +36 -19
  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/403x.html +65 -0
  15. data/_includes/content/404x.html +65 -0
  16. data/_includes/content/category_list.html +86 -86
  17. data/_includes/content/category_post_list.html +108 -100
  18. data/_includes/content/component/highlight.html +11 -11
  19. data/_includes/content/component/imgboxed.html +304 -304
  20. data/_includes/content/component/lastupdate.html +35 -35
  21. data/_includes/content/component/lazyload.html +6 -6
  22. data/_includes/content/component/page_tags.html +17 -17
  23. data/_includes/content/component/qrcode.html +26 -26
  24. data/_includes/content/component/readtime.html +27 -27
  25. data/_includes/content/component/sns_share.html +42 -42
  26. data/_includes/content/component/toc.html +84 -84
  27. data/_includes/content/editor.html +1058 -1058
  28. data/_includes/content/friends.html +23 -23
  29. data/_includes/content/love.html +123 -0
  30. data/_includes/content/page_content.html +92 -87
  31. data/_includes/content/page_content_no_toc.html +69 -64
  32. data/_includes/content/paginator_button.html +24 -24
  33. data/_includes/content/paginator_post_list.html +103 -95
  34. data/_includes/content/tags_list.html +99 -99
  35. data/_includes/footer/footer.html +30 -30
  36. data/_includes/head.html +94 -88
  37. data/_includes/header/header.html +174 -174
  38. data/_includes/meng/aplayer.html +100 -100
  39. data/_includes/meng/background.html +34 -34
  40. data/_includes/meng/card.html +13 -13
  41. data/_includes/meng/console.html +10 -10
  42. data/_includes/meng/cplayer.html +61 -61
  43. data/_includes/meng/cursor.html +8 -8
  44. data/_includes/meng/head_card.html +67 -67
  45. data/_includes/meng/live2d.html +60 -60
  46. data/_includes/meng/title.html +23 -23
  47. data/_includes/submission/baidu.html +13 -13
  48. data/_layouts/category_content.html +3 -3
  49. data/_layouts/category_list.html +3 -3
  50. data/_layouts/compress.html +9 -9
  51. data/_layouts/default.html +49 -49
  52. data/_layouts/editor.html +4 -4
  53. data/_layouts/friends.html +3 -3
  54. data/_layouts/home.html +20 -20
  55. data/_layouts/love.html +4 -0
  56. data/_layouts/page.html +12 -12
  57. data/_layouts/post.html +12 -12
  58. data/_layouts/tags.html +4 -4
  59. data/assets/css/global.css +181 -181
  60. metadata +16 -13
@@ -1,24 +1,24 @@
1
- <script>
2
-
3
- {% if site.data.meng.title.with_default_title == true %}
4
- var hiddenText = '{{site.data.meng.title.hidden}}' +' '+ defaultTitle;
5
- var visibleText = '{{site.data.meng.title.visible}}' +' '+ defaultTitle;
6
- {% else %}
7
- var hiddenText = '{{site.data.meng.title.hidden}}';
8
- var visibleText = '{{site.data.meng.title.visible}}';
9
- {% endif %}
10
- var resetTime = {{site.data.meng.title.reset_time}};
11
- document.addEventListener("visibilitychange", function() {
12
- if(document.visibilityState == "hidden" ){
13
- document.title = hiddenText;
14
- }
15
- if(document.visibilityState == "visible"){
16
- document.title = visibleText;
17
- setTimeout(function(){
18
- if(document.visibilityState == "visible"){
19
- document.title = defaultTitle;
20
- }
21
- },resetTime);
22
- }
23
- }, false);
1
+ <script>
2
+
3
+ {% if site.data.meng.title.with_default_title == true %}
4
+ var hiddenText = '{{site.data.meng.title.hidden}}' +' '+ defaultTitle;
5
+ var visibleText = '{{site.data.meng.title.visible}}' +' '+ defaultTitle;
6
+ {% else %}
7
+ var hiddenText = '{{site.data.meng.title.hidden}}';
8
+ var visibleText = '{{site.data.meng.title.visible}}';
9
+ {% endif %}
10
+ var resetTime = {{site.data.meng.title.reset_time}};
11
+ document.addEventListener("visibilitychange", function() {
12
+ if(document.visibilityState == "hidden" ){
13
+ document.title = hiddenText;
14
+ }
15
+ if(document.visibilityState == "visible"){
16
+ document.title = visibleText;
17
+ setTimeout(function(){
18
+ if(document.visibilityState == "visible"){
19
+ document.title = defaultTitle;
20
+ }
21
+ },resetTime);
22
+ }
23
+ }, false);
24
24
  </script>
@@ -1,14 +1,14 @@
1
- <script>
2
- (function(){
3
- var bp = document.createElement('script');
4
- var curProtocol = window.location.protocol.split(':')[0];
5
- if (curProtocol === 'https') {
6
- bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
7
- }
8
- else {
9
- bp.src = 'http://push.zhanzhang.baidu.com/push.js';
10
- }
11
- var s = document.getElementsByTagName("script")[0];
12
- s.parentNode.insertBefore(bp, s);
13
- })();
1
+ <script>
2
+ (function(){
3
+ var bp = document.createElement('script');
4
+ var curProtocol = window.location.protocol.split(':')[0];
5
+ if (curProtocol === 'https') {
6
+ bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
7
+ }
8
+ else {
9
+ bp.src = 'http://push.zhanzhang.baidu.com/push.js';
10
+ }
11
+ var s = document.getElementsByTagName("script")[0];
12
+ s.parentNode.insertBefore(bp, s);
13
+ })();
14
14
  </script>
@@ -1,4 +1,4 @@
1
- ---
2
- layout: default
3
- ---
1
+ ---
2
+ layout: default
3
+ ---
4
4
  {% include content/category_post_list.html %}
@@ -1,4 +1,4 @@
1
- ---
2
- layout: default
3
- ---
1
+ ---
2
+ layout: default
3
+ ---
4
4
  {% include content/category_list.html %}
@@ -1,10 +1,10 @@
1
- ---
2
- # Jekyll layout that compresses HTML
3
- # v3.0.2
4
- # http://jch.penibelst.de/
5
- # © 2014–2015 Anatol Broder
6
- # MIT License
7
- ---
8
-
9
- {% capture _LINE_FEED %}
1
+ ---
2
+ # Jekyll layout that compresses HTML
3
+ # v3.0.2
4
+ # http://jch.penibelst.de/
5
+ # © 2014–2015 Anatol Broder
6
+ # MIT License
7
+ ---
8
+
9
+ {% capture _LINE_FEED %}
10
10
  {% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
@@ -1,50 +1,50 @@
1
- ---
2
- layout: compress
3
- ---
4
- <!DOCTYPE html>
5
- <html lang="{{site.data.site.lang}}">
6
- {% include head.html %}
7
- <body>
8
- {% include component/totop.html %}
9
- {% include header/header.html %}
10
- <div class="mdui-container container">
11
- <section class="content">
12
- {{ content }}
13
- </section>
14
- </div>
15
- {% if site.data.site.google_analytics != "" %}
16
- {% include analytics/google.html %}
17
- {% endif %}
18
- {% if site.data.site.baidu_auto_push == true %}
19
- {% include submission/baidu.html %}
20
- {% endif %}
21
- {% include component/sw.html %}
22
- {% include component/customCssJS.html %}
23
- {% include footer/footer.html %}
24
- {% if site.data.site.uiux.meng == true%}
25
- {% if site.data.meng.live2d.switch == true %}
26
- {% include meng/live2d.html %}
27
- {% endif %}
28
- {% if site.data.meng.title.switch == true %}
29
- {% include meng/title.html %}
30
- {% endif %}
31
- {% if site.data.meng.cursor.switch == true %}
32
- {% include meng/cursor.html %}
33
- {% endif %}
34
- {% if site.data.meng.console.switch == true %}
35
- {% include meng/console.html %}
36
- {% endif %}
37
- {% if site.data.meng.background.switch == true %}
38
- {% include meng/background.html %}
39
- {% endif %}
40
- {% if site.data.meng.card.switch == true %}
41
- {% include meng/card.html %}
42
- {% endif %}
43
- {% if site.data.meng.music_player.player == "cplayer" %}
44
- {% include meng/cplayer.html %}
45
- {% elsif site.data.meng.music_player.player == "aplayer"%}
46
- {% include meng/aplayer.html %}
47
- {% endif %}
48
- {% endif %}
49
- </body>
1
+ ---
2
+ layout: compress
3
+ ---
4
+ <!DOCTYPE html>
5
+ <html lang="{{site.data.site.lang}}">
6
+ {% include head.html %}
7
+ <body>
8
+ {% include component/totop.html %}
9
+ {% include header/header.html %}
10
+ <div class="mdui-container container">
11
+ <section class="content">
12
+ {{ content }}
13
+ </section>
14
+ </div>
15
+ {% if site.data.site.google_analytics != "" %}
16
+ {% include analytics/google.html %}
17
+ {% endif %}
18
+ {% if site.data.site.baidu_auto_push == true %}
19
+ {% include submission/baidu.html %}
20
+ {% endif %}
21
+ {% include component/sw.html %}
22
+ {% include component/customCssJS.html %}
23
+ {% include footer/footer.html %}
24
+ {% if site.data.site.uiux.meng == true%}
25
+ {% if site.data.meng.live2d.switch == true %}
26
+ {% include meng/live2d.html %}
27
+ {% endif %}
28
+ {% if site.data.meng.title.switch == true %}
29
+ {% include meng/title.html %}
30
+ {% endif %}
31
+ {% if site.data.meng.cursor.switch == true %}
32
+ {% include meng/cursor.html %}
33
+ {% endif %}
34
+ {% if site.data.meng.console.switch == true %}
35
+ {% include meng/console.html %}
36
+ {% endif %}
37
+ {% if site.data.meng.background.switch == true %}
38
+ {% include meng/background.html %}
39
+ {% endif %}
40
+ {% if site.data.meng.card.switch == true %}
41
+ {% include meng/card.html %}
42
+ {% endif %}
43
+ {% if site.data.meng.music_player.player == "cplayer" %}
44
+ {% include meng/cplayer.html %}
45
+ {% elsif site.data.meng.music_player.player == "aplayer"%}
46
+ {% include meng/aplayer.html %}
47
+ {% endif %}
48
+ {% endif %}
49
+ </body>
50
50
  </html>
data/_layouts/editor.html CHANGED
@@ -1,5 +1,5 @@
1
- ---
2
- layout: default
3
- ---
4
-
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
5
  {% include content/editor.html %}
@@ -1,4 +1,4 @@
1
- ---
2
- layout: default
3
- ---
1
+ ---
2
+ layout: default
3
+ ---
4
4
  {% include content/friends.html %}
data/_layouts/home.html CHANGED
@@ -1,20 +1,20 @@
1
- ---
2
- layout: default
3
- ---
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
-
18
- {% include content/paginator_post_list.html %}
19
- {% include content/paginator_button.html %}
20
- </div>
1
+ ---
2
+ layout: default
3
+ ---
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
+
18
+ {% include content/paginator_post_list.html %}
19
+ {% include content/paginator_button.html %}
20
+ </div>
@@ -0,0 +1,4 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ {% include content/love.html %}
data/_layouts/page.html CHANGED
@@ -1,13 +1,13 @@
1
- ---
2
- layout: default
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 %}
12
- {% include content/page_content_no_toc.html %}
1
+ ---
2
+ layout: default
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 %}
12
+ {% include content/page_content_no_toc.html %}
13
13
  {% include content/component/imgboxed.html %}
data/_layouts/post.html CHANGED
@@ -1,13 +1,13 @@
1
- ---
2
- layout: default
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 %}
12
- {% include content/page_content.html %}
1
+ ---
2
+ layout: default
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 %}
12
+ {% include content/page_content.html %}
13
13
  {% include content/component/imgboxed.html %}
data/_layouts/tags.html CHANGED
@@ -1,5 +1,5 @@
1
- ---
2
- layout: default
3
- ---
4
-
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
5
  {% include content/tags_list.html %}