jekyll-theme-materialize 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +50 -15
- data/_includes/head.html +2 -2
- data/_includes/header.html +4 -4
- data/_layouts/archive.html +1 -1
- data/_layouts/index.html +1 -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: 9a7555ba3dc8e7fc1bc94363c77335350c3ba800
|
4
|
+
data.tar.gz: b507aad1b04273396086c2b0acc8005a7fe4f811
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69abba5a6c2a33b442c2afddfc392812f9511227428b18589e54f6168c427976e61420e65d5dba128146060a1fe648ce7274ddb43654d2c79ce3c126f87a4c10
|
7
|
+
data.tar.gz: 12d888563409452f902c1d5e28e311e5f199f074a340ca99b940d75bf2badec172806a292528e490c54fdb42a90c9608bc224c857df5b2ba63d259da3f2b83ae
|
data/README.md
CHANGED
@@ -1,38 +1,74 @@
|
|
1
1
|
# jekyll-theme-materialize
|
2
2
|
|
3
|
-
|
3
|
+
## 安装
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Add this line to your Jekyll site's `Gemfile`:
|
5
|
+
添加下行到你 Jekyll 的 `Gemfile`文件中:
|
10
6
|
|
11
7
|
```ruby
|
12
8
|
gem "jekyll-theme-materialize"
|
13
9
|
```
|
14
10
|
|
15
|
-
|
11
|
+
添加下行到你 Jekyll 的`_config.yml`文件中 :
|
16
12
|
|
17
13
|
```yaml
|
18
14
|
theme: jekyll-theme-materialize
|
19
15
|
```
|
20
16
|
|
21
|
-
|
17
|
+
然后执行:
|
22
18
|
|
23
19
|
$ bundle
|
24
20
|
|
25
|
-
|
21
|
+
或手动执行:
|
26
22
|
|
27
23
|
$ gem install jekyll-theme-materialize
|
28
24
|
|
29
|
-
##
|
25
|
+
## 用法
|
30
26
|
|
31
|
-
|
27
|
+
将如下内容添加到你Jekyll 的`_config.yml`文件中,请注意替换为你自己的信息:
|
32
28
|
|
33
|
-
|
29
|
+
```yaml
|
30
|
+
title: KeJun | BLOG
|
31
|
+
email: kejun1997@gmail.com
|
32
|
+
description: 二次元智障
|
33
|
+
url: "https://blog.kejun.tk/"
|
34
|
+
|
35
|
+
# icon
|
36
|
+
icon-16x16: images/icon/favicon-16x16.ico
|
37
|
+
icon-32x32: images/icon/favicon-32x32.ico
|
38
|
+
|
39
|
+
# theme color
|
40
|
+
theme-color: {
|
41
|
+
default-color: green,
|
42
|
+
home-color: green,
|
43
|
+
about-color: red,
|
44
|
+
archive-color: pink,
|
45
|
+
links-color: purple,
|
46
|
+
tags-color: blue
|
47
|
+
}
|
48
|
+
|
49
|
+
# mobile nav
|
50
|
+
mobile-hp: /images/tx.jpg
|
51
|
+
mobile-bg: /images/userbg.png
|
52
|
+
```
|
53
|
+
每一个新的文章均需要添加如下yaml:
|
34
54
|
|
35
|
-
|
55
|
+
```yaml
|
56
|
+
---
|
57
|
+
layout: post # 指定模板
|
58
|
+
categories: NoImage # 分类,首页显示
|
59
|
+
image: # 图像,用于首页,若留空将以NoImage的形式显示
|
60
|
+
tags: jekyll ubuntu # 标签,用于tags页面,允许多个
|
61
|
+
---
|
62
|
+
```
|
63
|
+
|
64
|
+
友情链接在`_data/links.yml`中,要删除或新增,请遵循如下格式:
|
65
|
+
|
66
|
+
```yaml
|
67
|
+
- name: Halyul
|
68
|
+
image: images/links/halyul.png
|
69
|
+
url: https://halyul.com/
|
70
|
+
describe: Material Design爱好者
|
71
|
+
```
|
36
72
|
|
37
73
|
## Development
|
38
74
|
|
@@ -44,5 +80,4 @@ When your theme is released, only the files in `_layouts`, `_includes`, and `_sa
|
|
44
80
|
|
45
81
|
## License
|
46
82
|
|
47
|
-
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
48
|
-
|
83
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/_includes/head.html
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
|
7
7
|
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
8
8
|
|
9
|
-
<link rel="icon" href="{{ site.
|
10
|
-
<link rel="icon" href="{{ site.
|
9
|
+
<link rel="icon" href="{{ site.icon-32x32 }}" sizes="32x32">
|
10
|
+
<link rel="icon" href="{{ site.icon-16x16 }}" sizes="16x16">
|
11
11
|
|
12
12
|
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
|
13
13
|
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
data/_includes/header.html
CHANGED
@@ -10,11 +10,11 @@
|
|
10
10
|
<ul class="bt hide-on-med-and-down">
|
11
11
|
{% assign a = page.url | remove:'.html' | append:'.html' %} {% if page.url == a %}
|
12
12
|
<li>
|
13
|
-
<a href="{{ site.
|
13
|
+
<a href="{{ site.baseurl }}/">Home</a>
|
14
14
|
</li>
|
15
15
|
{% else %}
|
16
16
|
<li class="k">
|
17
|
-
<a href="{{ site.
|
17
|
+
<a href="{{ site.baseurl }}/">Home</a>
|
18
18
|
</li>
|
19
19
|
{% endif %} {% for my_page in site.pages %} {% if my_page.title %} {% if page.url == my_page.url %}
|
20
20
|
<li class="k">
|
@@ -83,9 +83,9 @@
|
|
83
83
|
<li>
|
84
84
|
<div class="userView">
|
85
85
|
<div class="background">
|
86
|
-
<img style="width:300px;height:160px;" src="{{
|
86
|
+
<img style="width:300px;height:160px;" src="{{ site.mobile-bg | prepend: site.baseurl }}">
|
87
87
|
</div>
|
88
|
-
<a href="{{ site.baseurl }}/"><img class="circle" src="{{
|
88
|
+
<a href="{{ site.baseurl }}/"><img class="circle" src="{{ site.mobile-hp | prepend: site.baseurl }}"></a>
|
89
89
|
<a href="#!"><span class="white-text name">{{ site.title }}</span></a>
|
90
90
|
<a href="mailto:{{ site.email }}"><span class="white-text email">{{ site.email }}</span></a>
|
91
91
|
</div>
|
data/_layouts/archive.html
CHANGED
@@ -40,7 +40,7 @@ layout: default
|
|
40
40
|
<div class="placeholder">
|
41
41
|
<div class="gallery-curve-wrapper">
|
42
42
|
<a class="gallery-cover gray" style="height: 300px;">
|
43
|
-
<img src="{{ post.image }}" crossorigin="anonymous" alt="placeholder">
|
43
|
+
<img src="{{ post.image | prepend: site.baseurl }}" crossorigin="anonymous" alt="placeholder">
|
44
44
|
<div class="gradient"></div>
|
45
45
|
</a>
|
46
46
|
<div class="gallery-header">
|
data/_layouts/index.html
CHANGED
@@ -36,7 +36,7 @@ layout: default
|
|
36
36
|
<div class="placeholder">
|
37
37
|
<div class="gallery-curve-wrapper">
|
38
38
|
<a class="gallery-cover gray" style="height: 300px;">
|
39
|
-
<img src="{{ post.image }}" crossorigin="anonymous" alt="placeholder">
|
39
|
+
<img src="{{ post.image | prepend: site.baseurl }}" crossorigin="anonymous" alt="placeholder">
|
40
40
|
<div class="gradient"></div>
|
41
41
|
</a>
|
42
42
|
<div class="gallery-header">
|