jekyll-theme-mdui 0.5.3 → 0.5.4

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
  SHA256:
3
- metadata.gz: 5d4c3fd348dfe948b4a10795fb0765f07b6a8d18dd66bcf5d8a7fa815456f583
4
- data.tar.gz: 1ab2e81b157aa3d710e6786170c686be16b9814a54f2e5b92ee51a75dc1b09c0
3
+ metadata.gz: f4cadc0abd2bcfee6b49719f749a89ef98549c2ef9c1bf33a0dd59ff5109d15a
4
+ data.tar.gz: d1b6b505a72d5ccb0cfe281c72f186b2a0b1d84e1e97a1be249e0b8025057596
5
5
  SHA512:
6
- metadata.gz: 340f2ea014d740e65d034ce72f4b689ca2a16a445734d2362e21790989b852a3c9150325ef9aa112226ac3c251a3e384ede51d886c926ef0364e04569a248d1b
7
- data.tar.gz: 5c9d62a7bc389b8e55c80a875483b746190768be5cefc26fe958a386ad934c9b6b5851491f7fcabe5ed5129f475defaf020fdd2c6d32da740a6be8cc4711b291
6
+ metadata.gz: c7463a72efdab532a402979c86bdbb1efa7c9f4e7bdbd8ec337689d91624a305ea1f4ba70d5bef2d7bbafb91a4ec5b6548c986e75d9fa96163214ff8ef6da9ba
7
+ data.tar.gz: 6c53a7d14784795346fd6164cbd0469d81f3ba104d3595a0a65aaf9b00c4399a4eafc888692e8be5224d67a7b8b2dd828b4483cbf6992a658d52e5fe29a4a52c
data/README.md CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  ## General
22
22
 
23
- [![Version](https://img.shields.io/badge/version-0.5.3-green.svg?style=flat-square)]()
23
+ [![Version](https://img.shields.io/badge/version-0.5.4-green.svg?style=flat-square)]()
24
24
  [![Jekyll](https://img.shields.io/badge/Jekyll-3.5+-green.svg?style=flat-square)](https://jekyllrb.com/)
25
25
  [![Gem](https://img.shields.io/gem/dt/jekyll-theme-mdui.svg?style=flat-square)](https://rubygems.org/gems/jekyll-theme-mdui/)
26
26
 
@@ -43,6 +43,7 @@
43
43
  <div id="disqus_thread"></div>
44
44
  <script>
45
45
  function disqus() {
46
+ $('#disqus_thread').css('display', 'block');
46
47
  var disqus_shortname = '{{ site.data.site.comment.disqus_shortname }}';
47
48
  if (typeof DISQUS !== 'object') {
48
49
  (function () {
@@ -5,11 +5,6 @@
5
5
  $('script[src="https://cdn-city.livere.com/js/embed.dist.js"]').remove();
6
6
  });
7
7
  </script>
8
- <style>
9
- iframe+iframe {
10
- display: none;
11
- }
12
- </style>
13
8
  <div style="padding:0px 16px;" id="lv-container" data-id="{{site.data.site.comment.livere_type}}" data-uid="{{site.data.site.comment.livere_data_uid}}">
14
9
  <script type="text/javascript">
15
10
  $(function () {
@@ -40,4 +35,4 @@ iframe+iframe {
40
35
  </script>
41
36
  <noscript> 为正常使用来必力评论功能请激活JavaScript</noscript>
42
37
  </div>
43
- <!-- City版安装代码已完成 -->
38
+ <!-- City版安装代码已完成 -->
@@ -0,0 +1,65 @@
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-noimg{
19
+ padding-left: 16px;
20
+ }
21
+ .k-noimg h1::before{
22
+ color: #FF5151 ;
23
+ content: "- - -";
24
+ }
25
+ .k-noimg h1::after{
26
+ color: #FF5151 ;
27
+ content: "- - -";
28
+ }
29
+ .k-noimg h1:before,.k-noimg h1:after{
30
+ display: block;
31
+ font-size: 30px;
32
+ margin-top: 35px;
33
+ }
34
+ .k-noimg a,.k-noimg h1{
35
+ text-decoration: none;
36
+ color: white;
37
+ font-size: 24px;
38
+ font-weight: inherit;
39
+ }
40
+ .k-head-card-content .mdui-card-header-title{
41
+ line-height: 40px;
42
+ margin-left: 0;
43
+ }
44
+ .k-head-card-content{
45
+ margin-right: 12px;
46
+ }
47
+ </style>
48
+
49
+ <div class="mdui-row-md-4 mdui-row-sm">
50
+ <div class="mdui-col">
51
+ <div class="animated bounceIn mdui-card k-list-card mdui-shadow-{{site.data.site.card.card_shadow}} {% if site.data.site.card.card_hoverable == true%}mdui-hoverable{% endif %}">
52
+ <div class="mdui-card-media mdui-ripple k-post-media mdui-valign k-noimg">
53
+ <h1>{{ lang.error.main }} </a> <br /> <br /> <span class="mdui-text-color-blue">{{ lang.error.403x }}</span> </h3>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <div class="mdui-card-header k-head-card-content">
58
+ <a style="color: #000000; text-decoration: none;" href="{{ "/" | prepend: site.baseurl }}">
59
+ <div class="mdui-card-header-title">
60
+ <i style="font-style: normal;" class="material-icons">keyboard_arrow_right</i> 回到主页
61
+ </div>
62
+ </a>
63
+ </div>
64
+
65
+ </div>
@@ -0,0 +1,65 @@
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-noimg{
19
+ padding-left: 16px;
20
+ }
21
+ .k-noimg h1::before{
22
+ color: #FF5151 ;
23
+ content: "- - -";
24
+ }
25
+ .k-noimg h1::after{
26
+ color: #FF5151 ;
27
+ content: "- - -";
28
+ }
29
+ .k-noimg h1:before,.k-noimg h1:after{
30
+ display: block;
31
+ font-size: 30px;
32
+ margin-top: 35px;
33
+ }
34
+ .k-noimg a,.k-noimg h1{
35
+ text-decoration: none;
36
+ color: white;
37
+ font-size: 24px;
38
+ font-weight: inherit;
39
+ }
40
+ .k-head-card-content .mdui-card-header-title{
41
+ line-height: 40px;
42
+ margin-left: 0;
43
+ }
44
+ .k-head-card-content{
45
+ margin-right: 12px;
46
+ }
47
+ </style>
48
+
49
+ <div class="mdui-row-md-4 mdui-row-sm">
50
+ <div class="mdui-col">
51
+ <div class="animated bounceIn mdui-card k-list-card mdui-shadow-{{site.data.site.card.card_shadow}} {% if site.data.site.card.card_hoverable == true%}mdui-hoverable{% endif %}">
52
+ <div class="mdui-card-media mdui-ripple k-post-media mdui-valign k-noimg">
53
+ <h1>{{ lang.error.main }} </a> <br /> <br /> <span class="mdui-text-color-blue">{{ lang.error.404x }}</span> </h3>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <div class="mdui-card-header k-head-card-content">
58
+ <a style="color: #000000; text-decoration: none;" href="{{ "/" | prepend: site.baseurl }}">
59
+ <div class="mdui-card-header-title">
60
+ <i style="font-style: normal;" class="material-icons">keyboard_arrow_right</i> 回到主页
61
+ </div>
62
+ </a>
63
+ </div>
64
+
65
+ </div>
@@ -55,16 +55,19 @@ jQuery(document).ready(function($) {
55
55
  NProgress.start();
56
56
  });
57
57
  History.Adapter.bind(window, 'statechange', function(){
58
- var State = History.getState();
58
+ var flag = 0;
59
+ var State = History.getState();
59
60
  $.get(State.url, function(data){
60
61
  $('.mdui-tooltip').remove();
61
62
  $(".mdui-container").fadeOut(300,function(){
62
- $('.container').html($(data).find('.content'));
63
+ if (flag++>0)return;
64
+ const content = $(data).find('.content');
65
+ $('.container').html($(content));
63
66
  document.title = data.match(/<title>(.*?)<\/title>/)[1];
64
67
  defaultTitle = document.title;
65
68
  NProgress.done();
66
- $('#k-menus').html($(data).find('#k-menus').children());
67
- $('#k-mobile-menus').html($(data).find('#k-mobile-menus').children());
69
+ $('#k-menus').html($(data).find('#k-menus').children());
70
+ $('#k-mobile-menus').html($(data).find('#k-mobile-menus').children());
68
71
  $(".content").css('top','50px');
69
72
  $(".content").css('position','relative');
70
73
  $(".mdui-container").fadeIn();
@@ -88,4 +91,4 @@ var all=MathJax.Hub.getAllJax(),i;for(i=0;i<all.length;i+=1){all[i].SourceElemen
88
91
  </script>
89
92
  <script src="//cdn.bootcss.com/mathjax/2.7.1/MathJax.js?config=TeX-AMS_CHTML"></script>
90
93
  {% endif %}
91
- </head>
94
+ </head>
@@ -1,7 +1,7 @@
1
1
  {% if site.data.meng.console.switch == true %}
2
2
  {% if site.data.meng.console.theme_info == true %}
3
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;");
4
+ console.info("\n %c © Jekyll Theme MDUI | Version: 0.5.4 | 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
5
  </script>
6
6
  {% endif %}
7
7
  <script>
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-mdui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - KeJun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-06 00:00:00.000000000 Z
11
+ date: 2020-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.8.5
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 3.8.5
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jekyll-paginate
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.12'
47
+ version: '1.16'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.12'
54
+ version: '1.16'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '10.0'
61
+ version: '12.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '10.0'
68
+ version: '12.0'
69
69
  description:
70
70
  email:
71
71
  - kejun1997@gmail.com
@@ -85,6 +85,8 @@ files:
85
85
  - _includes/component/nprogress.html
86
86
  - _includes/component/sw.html
87
87
  - _includes/component/totop.html
88
+ - _includes/content/403x.html
89
+ - _includes/content/404x.html
88
90
  - _includes/content/category_list.html
89
91
  - _includes/content/category_post_list.html
90
92
  - _includes/content/component/highlight.html