jekyll-theme-yat 1.4.2 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f1a0df8a085d4068122e1c1d12cf2d4154eccaff65eb22aaa4b9253d97d51c3
4
- data.tar.gz: a38430895ae1a7c113f54193eaf0d46be0aebe8c1448c5c2af5c0011fcf35462
3
+ metadata.gz: e9f0c62601b83931b57a178d48a0e69d63210c27f65575a6e6e07c930b6338db
4
+ data.tar.gz: 1e5ff363a662f19b9b2743350a4f2809e157818db7933e1c461d071fa7b9a718
5
5
  SHA512:
6
- metadata.gz: 13b4bb4366a8570e0605c406f8bc1e7da8cbd2d742f3be02c04b2b6b3d2173f622e7690f9f6411ce28f387cd8bbcab3e83290c2d8f1eea8f9fb9bda82576d809
7
- data.tar.gz: a22bd8258a0c0ed62554c7d6219e263a682a3e235ce1cc65e698b815c85a3eb14f55af526db76b48beae3a8933fef0b2c3439716d27bbc98b957da3fa69efcd6
6
+ metadata.gz: 7e6e43e2802b0a5a870e6b930ac57d6d7eb5e24aadf9ef0b3a4f2baf88ab8d71f06bd5cdb8dae5f47947b32f11265e548b111b88cadec1798412c83a3a8d08f3
7
+ data.tar.gz: a3b1c644e0df40f4907fd1d9185450768d36a305dcd09b6cc2631c145c99873b73e976110acc4efd5c773af599dde0c4f3407b67e7bd7913f7aa0a1a90486ca2
data/README.md CHANGED
@@ -41,7 +41,12 @@ Or install it yourself as:
41
41
 
42
42
  ## Usage
43
43
 
44
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
44
+ Add or update your available layouts, includes, sass and/or assets.
45
+
46
+ GitHub Pages runs in `safe` mode and only allows [a set of whitelisted plugins](https://pages.github.com/versions/).
47
+ To use the third-party gem in GitHub Pages without limitation:
48
+
49
+ * Here is a GitHub Action named [jekyll-deploy-action](https://github.com/jeffreytse/jekyll-deploy-action) for Jekyll site deployment conveniently. 👍
45
50
 
46
51
  ## Development
47
52
 
@@ -2,6 +2,7 @@
2
2
  layout: framework
3
3
  banner:
4
4
  banner_html: post-header.html
5
+ hidden: []
5
6
  sidebar:
6
7
  - article-menu
7
8
  ---
@@ -13,12 +14,19 @@ sidebar:
13
14
  {%- include functions.html func='get_value' -%}
14
15
  {%- assign banner = return -%}
15
16
 
16
- {%- if banner == nil -%}
17
+ {%- assign name = 'hidden' -%}
18
+ {%- include functions.html func='get_value' -%}
19
+ {%- assign hidden = return -%}
20
+
21
+ {%- assign result = hidden | where_exp: "item", "item == 'header'" -%}
22
+ {%- if banner == nil and result.size == 0 -%}
17
23
  {%- include views/post-header.html -%}
18
24
  {%- endif -%}
19
25
 
20
26
  {%- include views/article.html -%}
21
27
 
28
+ {%- assign result = hidden | where_exp: "item", "item == 'navigator'" -%}
29
+ {%- if result.size == 0 -%}
22
30
  <div class="post-nav">
23
31
  {%- if page.previous -%}
24
32
  <a class="previous" href="{{ page.previous.url }}" title="{{
@@ -33,7 +41,10 @@ sidebar:
33
41
  <span></span>
34
42
  {%- endif -%}
35
43
  </div>
44
+ {%- endif -%}
36
45
 
46
+ {%- assign result = hidden | where_exp: "item", "item == 'related_posts'" -%}
47
+ {%- if result.size == 0 -%}
37
48
  <div class="post-related">
38
49
  <div>Related Articles</div>
39
50
  <ul>
@@ -43,17 +54,23 @@ sidebar:
43
54
  {%- endfor -%}
44
55
  </ul>
45
56
  </div>
57
+ {%- endif -%}
46
58
 
47
- {%- if page.comments != false -%}
59
+ {%- assign result = hidden | where_exp: "item", "item == 'comments'" -%}
60
+ {%- if result.size == 0 -%}
61
+ <div class="post-comments">
62
+ {%- if page.comments != false -%}
48
63
 
49
- {%- if site.disqus.shortname -%}
50
- {%- include extensions/comments/disqus.html -%}
51
- {%- endif -%}
64
+ {%- if site.disqus.shortname -%}
65
+ {%- include extensions/comments/disqus.html -%}
66
+ {%- endif -%}
52
67
 
53
- {%- if site.gitment.username -%}
54
- {%- include extensions/comments/gitment.html -%}
55
- {%- endif -%}
68
+ {%- if site.gitment.username -%}
69
+ {%- include extensions/comments/gitment.html -%}
70
+ {%- endif -%}
56
71
 
72
+ {%- endif -%}
73
+ </div>
57
74
  {%- endif -%}
58
75
 
59
76
  </section>
@@ -154,7 +154,7 @@ code {
154
154
  padding: 1px 5px;
155
155
  border-radius: 3px;
156
156
  color: #fff;
157
- background-color: $brand-color;
157
+ background-color: #545454;
158
158
  }
159
159
 
160
160
  pre {
@@ -319,10 +319,15 @@ html {
319
319
  border: 1px solid;
320
320
  padding: 2px 4px;
321
321
  border-radius: 2px;
322
+ transition: color 0.2s;
322
323
 
323
324
  &:not(:first-child) {
324
325
  margin-left: 8px;
325
326
  }
327
+
328
+ &:hover {
329
+ color: #777;
330
+ }
326
331
  }
327
332
 
328
333
  .paginator {
@@ -474,6 +479,10 @@ html {
474
479
  }
475
480
  }
476
481
 
482
+ .post-comments {
483
+ padding-top: 25px;
484
+ }
485
+
477
486
 
478
487
  /**
479
488
  * Posts misc
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-yat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - jeffreytse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-24 00:00:00.000000000 Z
11
+ date: 2020-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler