jekyll-theme-mdui 0.4.0 → 0.4.1

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
  SHA1:
3
- metadata.gz: ac2bd0c0f0ccad2815364e221a107a7dd5f6492d
4
- data.tar.gz: e1335725c0a2f89f1f9d99c4ac97b8a2f9bf6401
3
+ metadata.gz: e4ce39d9ccb232ed7ffb2b1484162a912c244a66
4
+ data.tar.gz: c7decf3bab6c8e48da5d3bf78a294b162839f104
5
5
  SHA512:
6
- metadata.gz: bc2aa06531044ccbf899c300d19317a7c976bcab2f9426d70e492478d65d1fe2d6a6f1f56ddbd9a23fed2521ed75375a8a3685025ab9f6def62b42c641a501e2
7
- data.tar.gz: 5234762aba5713ef7602f96f14bcbedac19e2ed2a8cc09920993c424566bb8dc6c7f02267fe9335f937668c6d2a3f3f0c58a492d73fa7d7a25e2bb3b3ce8202b
6
+ metadata.gz: 5b3f6ddb622580143cf3aec375819938bf93aa308776c0d34adbbd3d8d4883d5f7245abe4ca6bcec76388be51c37dc3209c4b7dfad201e72fda4ee1343ffb73b
7
+ data.tar.gz: f42d26bddad3edefc8a70b8703cf8b194fe2f14f2d8bdc1dee1dea547f0f526c8b36828909a246d3577c06a1e180e3618b7356e5532b34f49b54164d9aac6949
@@ -2,7 +2,9 @@
2
2
  <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
3
3
  <script src="https://cdn.bootcss.com/mdui/0.2.1/js/mdui.min.js"></script>
4
4
  <script src="https://cdn.bootcss.com/nprogress/0.2.0/nprogress.min.js"></script>
5
- <script src="{{ "/assets/js/jquery.scrollToTop.js" | prepend: site.baseurl }}"></script>
5
+ <script>
6
+ (function($){$.fn.scrollToTop=function(options){var config={"speed":800};if(options){$.extend(config,{"speed":options})}return this.each(function(){var $this=$(this);$(window).scroll(function(){if($(this).scrollTop()>100){$this.fadeIn()}else{$this.fadeOut()}});$this.click(function(e){e.preventDefault();$("body, html").animate({scrollTop:0},config.speed)})})};$.fn.scrollBodyToTop=function(options){var config={"speed":800};if(options){$.extend(config,{"speed":options})}return this.each(function(){var $this=$(this);$(".placeholder").scroll(function(){if($(this).scrollTop()>100){$this.fadeIn()}else{$this.fadeOut()}});$this.click(function(e){e.preventDefault();$(".placeholder").animate({scrollTop:0},config.speed)})})}})(jQuery);
7
+ </script>
6
8
  <script type="text/javascript">
7
9
  /* NProgress */
8
10
  NProgress.configure({
@@ -46,6 +48,18 @@ $(function(){
46
48
  });
47
49
  </script>
48
50
  <!--/* global-script-end */-->
51
+ <!--/* home-script-start */-->
52
+ {% if page.layout =="home" %}
53
+ <script src="https://cdn.bootcss.com/jquery_lazyload/1.9.7/jquery.lazyload.min.js"></script>
54
+ <script>
55
+ $(function() {
56
+ $(".k-post-media").lazyload({
57
+ effect : "fadeIn"
58
+ });
59
+ });
60
+ </script>
61
+ {% endif %}
62
+ <!--/* home-script-end */-->
49
63
  <!--/* search-script-start */-->
50
64
  {% if page.layout =='search' %}
51
65
  <script src="{{ "/assets/js/jquery.typeahead.min.js" | prepend: site.baseurl }}"></script>
data/_layouts/home.html CHANGED
@@ -10,7 +10,7 @@ layout: default
10
10
  <div class="k-posts-list">
11
11
  {% for post in paginator.posts %}
12
12
  <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 %}">
13
- <div class="mdui-card-media k-post-media" style="background-image: url({{post.img}});">
13
+ <div class="mdui-card-media k-post-media" data-original="{{post.img}}">
14
14
  <div class="mdui-card-media-covered mdui-card-media-covered-gradient">
15
15
  <div class="mdui-card-primary">
16
16
  <div class="mdui-card-primary-title"><a class="mdui-text-color-white-text" href="{{post.url| prepend: site.baseurl}}">{{post.title}}</a></div>
data/assets/css/main.css CHANGED
@@ -8,7 +8,7 @@ layout: compress
8
8
  }
9
9
 
10
10
  body{
11
- transition: opacity .2s;
11
+ transition: opacity .5s!important;
12
12
  opacity: 1!important;
13
13
  }
14
14
 
@@ -26,7 +26,7 @@ body{
26
26
  margin-bottom: 45px;
27
27
  }
28
28
  .k-post-media{
29
- cursor: pointer;max-height: 245px;min-height:245px;background-position: 50% 50%;background-size: cover; background-color: #448aff;
29
+ cursor: pointer;max-height: 245px;min-height:245px;background-position: 50% 50%;background-size: cover; background-color: white;
30
30
  }
31
31
  .k-post-media .mdui-card-primary-title a{
32
32
  text-decoration: none;
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.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - KeJun
@@ -102,7 +102,6 @@ files:
102
102
  - assets/css/main.css
103
103
  - assets/css/pickerdata.css
104
104
  - assets/js/chips.js
105
- - assets/js/jquery.scrollToTop.js
106
105
  - assets/js/jquery.typeahead.min.js
107
106
  - assets/js/pickerdata.js
108
107
  - assets/js/pushpin.js
@@ -1 +0,0 @@
1
- (function($){$.fn.scrollToTop=function(options){var config={"speed":800};if(options){$.extend(config,{"speed":options})}return this.each(function(){var $this=$(this);$(window).scroll(function(){if($(this).scrollTop()>100){$this.fadeIn()}else{$this.fadeOut()}});$this.click(function(e){e.preventDefault();$("body, html").animate({scrollTop:0},config.speed)})})};$.fn.scrollBodyToTop=function(options){var config={"speed":800};if(options){$.extend(config,{"speed":options})}return this.each(function(){var $this=$(this);$(".placeholder").scroll(function(){if($(this).scrollTop()>100){$this.fadeIn()}else{$this.fadeOut()}});$this.click(function(e){e.preventDefault();$(".placeholder").animate({scrollTop:0},config.speed)})})}})(jQuery);