jekyll-theme-materialize 0.0.1 → 0.0.2

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: 6fc3648229caedc22eb8b7f7871eb9ec971f936b
4
- data.tar.gz: b8b470eed57e7910b19db8abd7ed563dc958c8b8
3
+ metadata.gz: 9a7555ba3dc8e7fc1bc94363c77335350c3ba800
4
+ data.tar.gz: b507aad1b04273396086c2b0acc8005a7fe4f811
5
5
  SHA512:
6
- metadata.gz: 08278807b364d9b28dc804eb3bde14ec4d72cbd476945be040b8b36004c1d30a050e48c26ffaeed59eeb879d2ac2af1a07ed059697c8c886f125ee8fc0587525
7
- data.tar.gz: 0b21854f7d65cc98c7129f27519a0d939148a66dae92e2d797e2d81cc341703f529d8bd9f2b51b9b5bcffafa6ffe24d6d6950808b74b49ddece847303dcbc240
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
- Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes` and your sass in `_sass`. To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
3
+ ## 安装
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
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
- And add this line to your Jekyll site's `_config.yml`:
11
+ 添加下行到你 Jekyll 的`_config.yml`文件中 :
16
12
 
17
13
  ```yaml
18
14
  theme: jekyll-theme-materialize
19
15
  ```
20
16
 
21
- And then execute:
17
+ 然后执行:
22
18
 
23
19
  $ bundle
24
20
 
25
- Or install it yourself as:
21
+ 或手动执行:
26
22
 
27
23
  $ gem install jekyll-theme-materialize
28
24
 
29
- ## Usage
25
+ ## 用法
30
26
 
31
- TODO: Write usage instructions here. Describe your available layouts, includes, and/or sass.
27
+ 将如下内容添加到你Jekyll 的`_config.yml`文件中,请注意替换为你自己的信息:
32
28
 
33
- ## Contributing
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
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
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.favicon-32x32 }}" sizes="32x32">
10
- <link rel="icon" href="{{ site.favicon-16x16 }}" sizes="16x16">
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 }}">
@@ -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.url }}">Home</a>
13
+ <a href="{{ site.baseurl }}/">Home</a>
14
14
  </li>
15
15
  {% else %}
16
16
  <li class="k">
17
- <a href="{{ site.url }}">Home</a>
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="{{ "/images/userbg.png" | prepend: site.baseurl }}">
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="{{ "/images/tx.jpg" | prepend: site.baseurl }}"></a>
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>
@@ -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">
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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - KeJun