custom_update_tags 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/update_tags.rb +5 -1
- 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: 70e77614144410bf91032cb70c0641c8fedda610884b16133db5b875b2f387e3
|
4
|
+
data.tar.gz: d31420e41d26be114d7984e36d3a70ca3c18b427634abd78af87359625c38db2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dabd07910a1fd857c300b01ae2f97297eeb397e9d884a19263815a6c1f7da0c2591937076d81106fba4ce257510864e251b7777fbe3aa8435c4313336808fbf
|
7
|
+
data.tar.gz: '09cd340388a20b52040c6c3572a890e949e0a680a82055a5594e9429fe3b9aa29d67696a056b93543baf1f1af35e8e6dfce2136fa2ebea80d0fe83e19fbed392'
|
data/lib/update_tags.rb
CHANGED
@@ -87,7 +87,11 @@ class UpdateTags
|
|
87
87
|
<<~INJECTED_LIQUID
|
88
88
|
{% assign tag = "#{tag}" %}
|
89
89
|
{% assign tagged_posts = "" | split: "" %}
|
90
|
-
{%
|
90
|
+
{% assign collections = 'posts,building,writing,notes,misc' | split: ',' %}
|
91
|
+
|
92
|
+
{% for collection_name in collections %}
|
93
|
+
{% assign current_collection = site[collections] %}
|
94
|
+
{% for post in current_collection %}
|
91
95
|
{% if post.tags contains tag %}
|
92
96
|
{% assign tagged_posts = tagged_posts | push: post %}
|
93
97
|
{% endif %}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: custom_update_tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Pachulski
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-04-
|
12
|
+
date: 2024-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|