jekyll-theme-yat 1.4.2 → 1.4.3
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 -1
- data/_layouts/post.html +25 -8
- data/_sass/yat/_base.scss +1 -1
- data/_sass/yat/_layout.scss +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9f0c62601b83931b57a178d48a0e69d63210c27f65575a6e6e07c930b6338db
|
4
|
+
data.tar.gz: 1e5ff363a662f19b9b2743350a4f2809e157818db7933e1c461d071fa7b9a718
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
data/_layouts/post.html
CHANGED
@@ -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
|
-
{%-
|
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
|
-
{%-
|
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
|
-
|
50
|
-
|
51
|
-
|
64
|
+
{%- if site.disqus.shortname -%}
|
65
|
+
{%- include extensions/comments/disqus.html -%}
|
66
|
+
{%- endif -%}
|
52
67
|
|
53
|
-
|
54
|
-
|
55
|
-
|
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>
|
data/_sass/yat/_base.scss
CHANGED
data/_sass/yat/_layout.scss
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2020-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|