jekyll-bonsai 0.0.5 → 0.0.6
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/_includes/tags.html +6 -7
- data/_layouts/book.html +2 -2
- data/_layouts/post.html +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee0c25b0f3222f483cc3285446d876304bb87bcd102183e9000522e32a3ff6ac
|
4
|
+
data.tar.gz: b91f4266262807e03c1ac2639d92ade4cace202abefd5582586ea2ac85de1a4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47f022f171a22d4de7fc20bcb5574552b8fe3f9a8439d982c32770c3805aa662921739f003991fce81173b2139c7e2bfbf8c187bed044f001b2192b161822140
|
7
|
+
data.tar.gz: 5ecc00553c01ee7880d5d19bfe8bfe552d872f5f4823c3d621af0556b81d2b0e77e2be156323a665123709187eef8fd3ce351cd4531563fc454da1bb26711f68
|
data/_includes/tags.html
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
Usage:
|
4
4
|
{% assign tag_attr = page.attributes | link_type: "tags" %}
|
5
|
-
{% include tags.html
|
5
|
+
{% include tags.html tags_attrs=tag_attr tags_fms=page.tags %}
|
6
6
|
|
7
7
|
Parameters:
|
8
|
-
*
|
8
|
+
* tags_attrs (array) - array of attributes that are hashes with keys
|
9
9
|
'type' and 'urls'
|
10
10
|
(which correspond to `jekyll-wikilinks`
|
11
11
|
attributes and attributed metadata)
|
12
|
-
*
|
12
|
+
* tags_fms (array) - array of strings that are tag names
|
13
13
|
(which correspond to entry filenames)
|
14
14
|
|
15
15
|
Note:
|
@@ -20,9 +20,8 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
<!-- 'tags' attribute -->
|
23
|
-
{%
|
24
|
-
{% for
|
25
|
-
{% for url in tag_attrs.urls %}
|
23
|
+
{% for tag_attr in tags_attrs %}
|
24
|
+
{% for url in tag_attr.urls %}
|
26
25
|
{% assign entry = site.entries | where: "url", url | first %}
|
27
26
|
<button class="tag-pill {% if entry %}{% else %}disabled{% endif %}">
|
28
27
|
{% if entry %}
|
@@ -35,7 +34,7 @@
|
|
35
34
|
{% endfor %}
|
36
35
|
{% endfor %}
|
37
36
|
<!-- 'tags' frontmatter -->
|
38
|
-
{% for sem_tag in
|
37
|
+
{% for sem_tag in tags_fms %}
|
39
38
|
<!-- prefix with '/' to prevent matching subhierarchies -->
|
40
39
|
{% assign sem_tag_path = "/" | append: sem_tag | append: ".md" %}
|
41
40
|
{% assign entry = site.entries | find_exp: "item", "item.path contains sem_tag_path" %}
|
data/_layouts/book.html
CHANGED
@@ -26,8 +26,8 @@ layout: base
|
|
26
26
|
{% endif %}
|
27
27
|
</div>
|
28
28
|
<div class="infobox__sem-tags p-category">
|
29
|
-
{% assign
|
30
|
-
{% include tags.html
|
29
|
+
{% assign tags_attrs = page.attributes | link_type: "tags" %}
|
30
|
+
{% include tags.html tags_attrs=tags_attrs tags_fm=page.tags %}
|
31
31
|
</div>
|
32
32
|
</div>
|
33
33
|
</section>
|
data/_layouts/post.html
CHANGED
@@ -24,8 +24,8 @@ layout: base
|
|
24
24
|
{% endif %}
|
25
25
|
</div>
|
26
26
|
<div class="infobox__sem-tags p-category">
|
27
|
-
{% assign
|
28
|
-
{% include tags.html
|
27
|
+
{% assign tags_attrs = page.attributes | link_type: "tags" %}
|
28
|
+
{% include tags.html tags_attrs=tags_attrs tag_fm=page.tags %}
|
29
29
|
</div>
|
30
30
|
</div>
|
31
31
|
</section>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-bonsai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- manunamz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -128,28 +128,28 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.0.
|
131
|
+
version: 0.0.10
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.0.
|
138
|
+
version: 0.0.10
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: jekyll-graph
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0.0.
|
145
|
+
version: 0.0.6
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.0.
|
152
|
+
version: 0.0.6
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: rake
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|