jekyll-theme-materialize 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a611a8f112ffe4b0086f0297dc72f0d7c453b014
4
- data.tar.gz: 0eb796d81889a1535908d89e3af39dee33ca232c
3
+ metadata.gz: 6ed0eb0163385bfe57cab4b2f31a032ab978c855
4
+ data.tar.gz: f138ae7bd254df6e557ad8d68c8bd24c5dddad99
5
5
  SHA512:
6
- metadata.gz: 9a6a2b06f81376b2ed7b4a9b182d5547b5f50287a3ab11f5b27075a81c80cdefa9f12ff69d4e0781b2393e5aab2db3b06588e777e586c92ff8af1fe21845197f
7
- data.tar.gz: 05a2c04e5207f1029cb7f2b4dc8d19bffb14e311fafd1155016db7242088688c344bb2ec087fb4a2dc009008bfac3ca0f004e198c62ae8e7413a8702c3351c59
6
+ metadata.gz: 93f29f878bd188759e2708af6d58023c730bf0bea59dae61c82d56f0fde12d0b97003fbd27ba7af29bfc2b3390303b7d5f17c2a0a06e400cef1507daa8ea112c
7
+ data.tar.gz: ef8b176c22d9ee6dc035f75a95fbb0ffbc658e7274eeb4308ac0f31010e6bf6c312d9f4158f33988b890cba3dbd9c2a03be488bbb54364e9f462d5be15c9e077
data/README.md CHANGED
@@ -21,10 +21,14 @@
21
21
 
22
22
  ![](https://ooo.0o0.ooo/2017/03/15/58c9345cdcfdf.png)
23
23
 
24
- [![Build Status](https://travis-ci.org/KeJunMao/jekyll-theme-materialize.svg?branch=master)](https://travis-ci.org/KeJunMao/jekyll-theme-materialize)
24
+ [![Build Status](https://travis-ci.org/KeJunMao/jekyll-theme-materialize.svg?branch=master?style=flat-square)](https://travis-ci.org/KeJunMao/jekyll-theme-materialize)
25
25
 
26
26
  [![jekyll-theme-materialize Version](https://badge.fury.io/rb/jekyll-theme-materialize.svg)](https://badge.fury.io/rb/jekyll-theme-materialize)
27
27
 
28
+ [![discord](https://img.shields.io/badge/discord-jekyll--theme--materialize-blue.svg)](https://discord.gg/JnaQkfz)
29
+
30
+ [![qq](https://img.shields.io/badge/QQ%20Group-Jekyll%20Materialize-blue.svg)](https://shang.qq.com/wpa/qunwpa?idkey=9585312e5f0aa9aa3665f9890a35d3741dcc8e1c0aff78fbd30844ca0da2d6e9)
31
+
28
32
  ## 预览
29
33
 
30
34
  [coding page(中国)](http://kejun.coding.me/jekyll-theme-materialize/)
@@ -91,7 +95,7 @@ url: "https://blog.kejun.tk/"
91
95
  icon-16x16: images/icon/favicon-16x16.ico
92
96
  icon-32x32: images/icon/favicon-32x32.ico
93
97
 
94
- # theme color
98
+ # theme color ,具体的值请参考http://materializecss.com/color.html
95
99
  theme-color: {
96
100
  default-color: green,
97
101
  home-color: green,
@@ -99,7 +99,7 @@
99
99
  </div>
100
100
  {% else %}
101
101
  <div class="background {% case page.url %}{% when '/' %}{{ site.theme-color.home-color }}{% when '/about.html' %}{{ site.theme-color.about-color }}{% when '/archive.html' %}{{ site.theme-color.archive-color }}{% when '/links.html' %}{{ site.theme-color.links-color }}{% when '/tags.html' %}{{ site.theme-color.tags-color }}{% else %}{{ site.theme-color.default-color }}{% endcase %}">
102
- <div class="mobile-background-image" style="background-image: url('/jekyll-theme-materialize/assets/images/bg.png');"></div>
102
+ <div class="mobile-background-image" style="background-image: url('{{"/assets/images/bg.png" | prepend: site.baseurl}}');"></div>
103
103
  </div>
104
104
  {% endif %}
105
105
  <a href="{{ site.baseurl }}/"><img class="circle" src="{{ site.mobile-hp | prepend: site.baseurl }}"></a>
@@ -120,6 +120,7 @@
120
120
  <div class="divider"></div>
121
121
  </li>
122
122
  <li><a class="subheader">Pages</a></li>
123
+ <li><a class="waves-effect tooltipped" data-position="right" data-delay="50" data-tooltip="Home" href="{{ site.baseurl }}/">Home</a></li>
123
124
  {% for my_page in site.pages %} {% if my_page.title %}
124
125
  <li><a class="waves-effect tooltipped" data-position="right" data-delay="50" data-tooltip="{{ my_page.title }}" href="{{ my_page.url | prepend: site.baseurl }}">{{ my_page.title }}</a></li>
125
126
  {% endif %} {% endfor %}
@@ -1,9 +1,9 @@
1
1
  <main>
2
- <div class="db">
2
+
3
+ <div id="main" class="db">
3
4
  <div class="content">
4
5
  {{ content }}
5
6
  </div>
6
-
7
7
  </div>
8
8
  <div class="fixed-action-btn to-top">
9
9
  <a href="#top" id="toTop" class="btn-floating btn-large waves-effect waves-light" style="display: none;"><i
@@ -98,7 +98,16 @@ $(document).ready(function () {
98
98
  if($('#toc').css("display") == "none"){
99
99
  $("div.toc").removeClass( "m9 l10" );
100
100
  }
101
-
101
+ if (window.innerWidth <= 600 && $(".card-panel")){
102
+ $("#main").removeClass("db");
103
+ }
104
+ $(window).resize(function(){
105
+ if (window.innerWidth <= 600){
106
+ $("#main").removeClass("db");
107
+ }else {
108
+ $("#main").addClass("db");
109
+ }
110
+ });
102
111
  });
103
112
  // 评论
104
113
  var disqus = {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-materialize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - KeJun