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 +4 -4
- data/README.md +6 -2
- data/_includes/header.html +2 -1
- data/_includes/main.html +2 -2
- data/assets/js/main.js +10 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ed0eb0163385bfe57cab4b2f31a032ab978c855
|
4
|
+
data.tar.gz: f138ae7bd254df6e557ad8d68c8bd24c5dddad99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93f29f878bd188759e2708af6d58023c730bf0bea59dae61c82d56f0fde12d0b97003fbd27ba7af29bfc2b3390303b7d5f17c2a0a06e400cef1507daa8ea112c
|
7
|
+
data.tar.gz: ef8b176c22d9ee6dc035f75a95fbb0ffbc658e7274eeb4308ac0f31010e6bf6c312d9f4158f33988b890cba3dbd9c2a03be488bbb54364e9f462d5be15c9e077
|
data/README.md
CHANGED
@@ -21,10 +21,14 @@
|
|
21
21
|
|
22
22
|

|
23
23
|
|
24
|
-
[](https://travis-ci.org/KeJunMao/jekyll-theme-materialize)
|
24
|
+
[](https://travis-ci.org/KeJunMao/jekyll-theme-materialize)
|
25
25
|
|
26
26
|
[](https://badge.fury.io/rb/jekyll-theme-materialize)
|
27
27
|
|
28
|
+
[](https://discord.gg/JnaQkfz)
|
29
|
+
|
30
|
+
[](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,
|
data/_includes/header.html
CHANGED
@@ -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('/
|
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 %}
|
data/_includes/main.html
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
<main>
|
2
|
-
|
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
|
data/assets/js/main.js
CHANGED
@@ -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 = {
|