jekyll-theme-materialize 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/_data/links.yml +28 -8
- data/_includes/header.html +13 -9
- data/_includes/main.html +5 -1
- data/assets/css/main.css +31 -16
- data/assets/images/M.png +0 -0
- data/assets/js/jquery.scrollToTop.min.js +54 -19
- data/assets/js/main.js +7 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd05c9f4c1beef3438adede2382d59b24e6acaea
|
4
|
+
data.tar.gz: 1814bad2809677345433715df4e1819d0170f21d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1101b19809ecd09dbd463e86fdc2f6c461ce1a8b62b409fd5beeb1c80d791c7ef36039340dce1038ec2308b2945d8d95d5791151156e7aa48b907fbd12333704
|
7
|
+
data.tar.gz: d9fe45122048d87b1196aba50c4697f22d10898ac0c0cc30c990bdb139ae411e1be9bc64da46ae7d1ea2f15c94a4e5becbcfa4c1ad4516fed418788128abbe85
|
data/README.md
CHANGED
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
有两种安装方法,一种是gem安装,另一种是`git clone`。
|
36
36
|
|
37
|
-
>
|
37
|
+
> 主题正在开发阶段建议您使用git clone的方法安装,这样您可以获取最新开发版本,而gem版本是略微稳定或新功能推出、已知bug修复的版本。
|
38
38
|
|
39
39
|
### 使用gem
|
40
40
|
|
@@ -129,6 +129,8 @@ manyAuthors: false
|
|
129
129
|
```yaml
|
130
130
|
---
|
131
131
|
layout: post # 指定模板
|
132
|
+
title: "toc test"
|
133
|
+
date: 2017-03-04 10:42:06 +0800
|
132
134
|
categories: NoImage # 分类,首页显示,该项经常用于检测是否为post。请注意,每个文章仅支持一个分类。
|
133
135
|
image: # 图像,用于首页,若留空将以NoImage的形式显示, 暂不支持跨域图像。
|
134
136
|
tags: jekyll ubuntu # 标签,用于tags页面,允许多个
|
@@ -304,14 +306,14 @@ footer的各种站点URL,请按如下格式填写至`_data/myherfs.yml`的url即
|
|
304
306
|
* 搜索 # 完成
|
305
307
|
* 二次元化选项
|
306
308
|
* cdn 支持 # 完成
|
307
|
-
*
|
309
|
+
* google analytics # 完成
|
308
310
|
* 分享
|
309
311
|
* 显示作者 #完成
|
310
312
|
* post layout images点击放大出现的位置错误
|
311
313
|
* home 和 archive 文章图片使用图床时的跨域问题(因为使用javascript优化了加载)
|
312
314
|
* 不依赖ruby gems的i18n
|
313
|
-
* homepage,请看[demo](https://kejun.space/)
|
314
|
-
* 配合homepage ,传入友链和links,当博客更新时,homepage也可以更新。请看[demo](https://kejun.space/#other)
|
315
|
+
* homepage,请看[demo](https://kejun.space/),[仓库地址](https://coding.net/u/KeJun/p/homepage/git)。
|
316
|
+
* 配合homepage ,传入友链和links,当博客更新时,homepage也可以更新。请看[demo](https://kejun.space/#other),[json](https://coding.net/u/KeJun/p/myblog/git/blob/master/assets/postsAndLinks.json)。
|
315
317
|
|
316
318
|
## License
|
317
319
|
|
data/_data/links.yml
CHANGED
@@ -1,19 +1,39 @@
|
|
1
|
-
- name: 剑雨、幽魂
|
2
|
-
image: assets/images/links/jianyuyouhun.jpg
|
3
|
-
url: http://jianyuyouhun.com/
|
4
|
-
describe: 前往安卓大神之路
|
5
|
-
|
6
1
|
- name: Parallel
|
7
|
-
image:
|
2
|
+
image: https://tva1.sinaimg.cn/crop.0.0.720.720.180/e93df40bjw8epg0k2owhxj20k00k0q3f.jpg
|
8
3
|
url: https://swumao.github.io/
|
9
4
|
describe: 茂同学
|
10
5
|
|
11
6
|
- name: viosey
|
12
|
-
image:
|
7
|
+
image: https://ooo.0o0.ooo/2016/12/23/585d119188d4f.png
|
13
8
|
url: https://blog.viosey.com/
|
14
9
|
describe: 一生想做自由 Geek
|
15
10
|
|
16
11
|
- name: Halyul
|
17
|
-
image:
|
12
|
+
image: https://cn.gravatar.com/userimage/113938008/e65085ec5e08a13de79873206f0c76fa.png?size=200
|
18
13
|
url: https://halyul.com/
|
19
14
|
describe: Material Design爱好者
|
15
|
+
|
16
|
+
- name: neoFelhz
|
17
|
+
image: https://ooo.0o0.ooo/2016/12/22/585bc334c107f.png
|
18
|
+
url: https://nfz.moe/
|
19
|
+
describe: 拾穗者的故事
|
20
|
+
|
21
|
+
- name: 滑稽
|
22
|
+
image: https://q1.qlogo.cn/headimg_dl?bs=1106996185&dst_uin=1106996185&spec=100&url_enc=0&referer=bu_interface&term_type=PC
|
23
|
+
url: https://huaji8.top
|
24
|
+
describe: 拼命想抓住一些东西
|
25
|
+
|
26
|
+
- name: 冰凌胧月的后宫
|
27
|
+
image: https://okx74lzri.qnssl.com/ico.png
|
28
|
+
url: https://imiku.me
|
29
|
+
describe: Welcome to disturb
|
30
|
+
|
31
|
+
- name: Elias's Cave
|
32
|
+
image: http://meniny.cn/img/default_s.jpg
|
33
|
+
url: http://meniny.cn
|
34
|
+
describe: Welcome
|
35
|
+
|
36
|
+
- name: FoamValue
|
37
|
+
image: http://www.foamvalue.com/favicon.ico
|
38
|
+
url: http://www.foamvalue.com
|
39
|
+
describe: 暂时还没想好
|
data/_includes/header.html
CHANGED
@@ -71,16 +71,18 @@
|
|
71
71
|
<div class="categories-container">
|
72
72
|
<ul class="categories db">
|
73
73
|
<li class="k"><a class="tooltipped" data-position="bottom" data-delay="50" data-tooltip="{{ site.posts | size }}篇文章" href="#all">All</a></li>
|
74
|
+
{% assign postsNum = 0 %}
|
74
75
|
{% for post in site.posts %}
|
75
|
-
{%
|
76
|
-
{%
|
77
|
-
{%
|
78
|
-
{%
|
79
|
-
|
80
|
-
|
81
|
-
|
76
|
+
{% assign postsNum = postsNum | plus: 1 %}
|
77
|
+
{% assign thisYear = post.date | date: "%Y" %}
|
78
|
+
{% assign prevYear = post.previous.date | date: "%Y" %}
|
79
|
+
{% if thisYear != prevYear %}
|
80
|
+
{% if outYear != thisYear %}
|
81
|
+
{% assign outYear = thisYear %}
|
82
|
+
<li><a class="tooltipped" data-position="bottom" data-delay="50" data-tooltip="{{ postsNum }}篇文章" href="#{{ outYear }}">{{ outYear }}</a></li>
|
83
|
+
{% endif %}
|
84
|
+
{% assign postsNum = 0 %}
|
82
85
|
{% endif %}
|
83
|
-
|
84
86
|
{% endfor %}
|
85
87
|
</ul>
|
86
88
|
</div>
|
@@ -96,7 +98,9 @@
|
|
96
98
|
<img style="width:300px;height:160px;" src="{{ site.mobile-bg | prepend: site.baseurl }}">
|
97
99
|
</div>
|
98
100
|
{% else %}
|
99
|
-
<div class="background {{ site.theme-color.default-color }}"
|
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>
|
103
|
+
</div>
|
100
104
|
{% endif %}
|
101
105
|
<a href="{{ site.baseurl }}/"><img class="circle" src="{{ site.mobile-hp | prepend: site.baseurl }}"></a>
|
102
106
|
<a href="#!"><span class="white-text name">{{ site.title }}</span></a>
|
data/_includes/main.html
CHANGED
@@ -5,8 +5,12 @@
|
|
5
5
|
</div>
|
6
6
|
|
7
7
|
</div>
|
8
|
-
<div class="fixed-action-btn">
|
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
|
10
10
|
class="material-icons">expand_less</i></a>
|
11
11
|
</div>
|
12
|
+
<div class="fixed-action-btn body-to-top">
|
13
|
+
<a href="#top" id="bodyToTop" class="btn-floating btn-large waves-effect waves-light" style="display: none;"><i
|
14
|
+
class="material-icons">expand_less</i></a>
|
15
|
+
</div>
|
12
16
|
</main>
|
data/assets/css/main.css
CHANGED
@@ -11,19 +11,15 @@
|
|
11
11
|
input[type=search] {
|
12
12
|
border-bottom: 0px!important;
|
13
13
|
}
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
.nav-search-wrapper input:not([type]):focus:not([readonly]) {
|
15
|
+
border-color: #fff;
|
16
|
+
}
|
17
|
+
.nav-search-wrapper input:not([type]){
|
18
|
+
border-color: #cacaca;
|
17
19
|
}
|
18
|
-
|
19
20
|
.page-footer {
|
20
21
|
z-index: 2;
|
21
22
|
}
|
22
|
-
|
23
|
-
::-webkit-scrollbar {
|
24
|
-
display: none
|
25
|
-
}
|
26
|
-
|
27
23
|
.post-data{
|
28
24
|
margin-bottom: 0px;
|
29
25
|
}
|
@@ -42,6 +38,11 @@
|
|
42
38
|
|
43
39
|
.linkContent {
|
44
40
|
height: 100%;
|
41
|
+
/*width:27em; */
|
42
|
+
white-space:nowrap;
|
43
|
+
text-overflow:ellipsis;
|
44
|
+
-o-text-overflow:ellipsis;
|
45
|
+
overflow:hidden;
|
45
46
|
}
|
46
47
|
|
47
48
|
.lazy{
|
@@ -51,11 +52,6 @@
|
|
51
52
|
height: 100%;
|
52
53
|
line-height: 22
|
53
54
|
}
|
54
|
-
|
55
|
-
#load-disqus{
|
56
|
-
/*margin-bottom: 50px;*/
|
57
|
-
}
|
58
|
-
|
59
55
|
.nav-search-wrapper{
|
60
56
|
display: block;
|
61
57
|
font-size: 16px;
|
@@ -91,13 +87,16 @@
|
|
91
87
|
|
92
88
|
.linkIcon{
|
93
89
|
width: 30px;
|
94
|
-
opacity: .
|
90
|
+
opacity: .70;
|
95
91
|
margin-right: 20px;
|
96
92
|
}
|
97
93
|
.p-linkIcon{
|
98
94
|
line-height: 0px;
|
99
95
|
margin-top: 0px;
|
100
96
|
}
|
97
|
+
.linkIcon a,img:hover {
|
98
|
+
opacity: 1.0;
|
99
|
+
}
|
101
100
|
.p-date{
|
102
101
|
margin-top: 0px;
|
103
102
|
line-height: 42px;
|
@@ -117,4 +116,20 @@
|
|
117
116
|
}
|
118
117
|
div.gallery-header {
|
119
118
|
padding-bottom: 10px!important;
|
120
|
-
}
|
119
|
+
}
|
120
|
+
::-webkit-scrollbar {
|
121
|
+
width: 8px;
|
122
|
+
height: 8px;
|
123
|
+
background: transparent;
|
124
|
+
}
|
125
|
+
|
126
|
+
::-webkit-scrollbar-thumb {
|
127
|
+
background: rgba(0, 0, 0, .2);
|
128
|
+
}
|
129
|
+
.to-top {
|
130
|
+
z-index: 1;
|
131
|
+
}
|
132
|
+
.mobile-background-image{
|
133
|
+
opacity: 0.1;
|
134
|
+
height: 100%;
|
135
|
+
}
|
data/assets/images/M.png
ADDED
Binary file
|
@@ -1,21 +1,56 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
c && a.extend(d, {speed: c});
|
10
|
-
return this.each(function () {
|
11
|
-
var b = a(this);
|
12
|
-
a(window).scroll(function () {
|
13
|
-
100 < a(this).scrollTop() ? b.fadeIn() : b.fadeOut()
|
1
|
+
(function($) {
|
2
|
+
$.fn.scrollToTop = function(options) {
|
3
|
+
var config = {
|
4
|
+
"speed" : 800
|
5
|
+
};
|
6
|
+
if (options) {
|
7
|
+
$.extend(config, {
|
8
|
+
"speed" : options
|
14
9
|
});
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
10
|
+
}
|
11
|
+
return this.each(function() {
|
12
|
+
var $this = $(this);
|
13
|
+
$(window).scroll(function() {
|
14
|
+
if ($(this).scrollTop() > 100) {
|
15
|
+
$this.fadeIn();
|
16
|
+
} else {
|
17
|
+
$this.fadeOut();
|
18
|
+
}
|
19
|
+
});
|
20
|
+
$this.click(function(e) {
|
21
|
+
e.preventDefault();
|
22
|
+
$("body, html").animate({
|
23
|
+
scrollTop : 0
|
24
|
+
}, config.speed);
|
25
|
+
});
|
26
|
+
|
27
|
+
});
|
28
|
+
};
|
29
|
+
$.fn.scrollBodyToTop = function(options) {
|
30
|
+
var config = {
|
31
|
+
"speed" : 800
|
32
|
+
};
|
33
|
+
if (options) {
|
34
|
+
$.extend(config, {
|
35
|
+
"speed" : options
|
36
|
+
});
|
37
|
+
}
|
38
|
+
return this.each(function() {
|
39
|
+
var $this = $(this);
|
40
|
+
$('.placeholder').scroll(function() {
|
41
|
+
if ($(this).scrollTop() > 100) {
|
42
|
+
$this.fadeIn();
|
43
|
+
} else {
|
44
|
+
$this.fadeOut();
|
45
|
+
}
|
46
|
+
});
|
47
|
+
$this.click(function(e) {
|
48
|
+
e.preventDefault();
|
49
|
+
$(".placeholder").animate({
|
50
|
+
scrollTop : 0
|
51
|
+
}, config.speed);
|
52
|
+
});
|
53
|
+
|
54
|
+
});
|
55
|
+
};
|
21
56
|
})(jQuery);
|
data/assets/js/main.js
CHANGED
@@ -2,11 +2,15 @@
|
|
2
2
|
$(document).ready(function () {
|
3
3
|
//scrollToTop
|
4
4
|
$("#toTop").scrollToTop();
|
5
|
+
$("#bodyToTop").scrollBodyToTop();
|
5
6
|
// gallery
|
6
7
|
$('.gallery-expand').galleryExpand({
|
7
8
|
fillScreen: true,
|
8
9
|
onShow: function (el) {
|
9
10
|
// 沉浸状态栏
|
11
|
+
$("#toTop").css({
|
12
|
+
"display": 'none'
|
13
|
+
})
|
10
14
|
var defaultColor = $("nav.nav-extended").css("background-color");
|
11
15
|
var a = $("#placeholder-navbar").css("background-color");
|
12
16
|
$("meta[name='theme-color']").attr('content', a);
|
@@ -16,6 +20,9 @@ $(document).ready(function () {
|
|
16
20
|
$("div#placeholder-overlay").click(function () {
|
17
21
|
$("meta[name='theme-color']").attr('content', defaultColor);
|
18
22
|
})
|
23
|
+
$("#bodyToTop").css({
|
24
|
+
"background-color": a
|
25
|
+
})
|
19
26
|
// code 高亮边框色
|
20
27
|
$("pre.highlight").css({
|
21
28
|
"border-left": "3px solid " + a,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-materialize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- KeJun
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- assets/fonts/roboto/Roboto-Thin.ttf
|
106
106
|
- assets/fonts/roboto/Roboto-Thin.woff
|
107
107
|
- assets/fonts/roboto/Roboto-Thin.woff2
|
108
|
+
- assets/images/M.png
|
108
109
|
- assets/images/bg.png
|
109
110
|
- assets/images/demo0.jpg
|
110
111
|
- assets/images/demo1.jpg
|