custom_update_tags 0.0.4 → 0.0.6
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 +6 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a38eccef3831c750481506e0ef364ffaae64f54ce669ea477796774dfc73916
|
4
|
+
data.tar.gz: e0510ec51c6117b1e8e945b66224a6fd62003bfa6bbc402220a772270c117818
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd2b449a792641ae8501f3ea1de33a2c9a2234726d4a4782c23aadcf3de4fbc305221f87a3c531761a67434c903fa2a965a96e57345de73de5c83b49ce6d9255
|
7
|
+
data.tar.gz: e5d81e1ee355c6058965fab71badd2fa3560a8072b12ca143398f99c73284c33460ebbd369834fd643a92768e7215d01ed429b2f550a688206cd5aace3eb6483
|
data/lib/update_tags.rb
CHANGED
@@ -90,11 +90,12 @@ class UpdateTags
|
|
90
90
|
{% assign collections = 'posts,building,writing,notes,misc' | split: ',' %}
|
91
91
|
|
92
92
|
{% for collection_name in collections %}
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
93
|
+
{% assign current_collection = site[collection_name] %}
|
94
|
+
{% for post in current_collection %}
|
95
|
+
{% if post.tags contains tag %}
|
96
|
+
{% assign tagged_posts = tagged_posts | push: post %}
|
97
|
+
{% endif %}
|
98
|
+
{% endfor %}
|
98
99
|
{% endfor %}
|
99
100
|
INJECTED_LIQUID
|
100
101
|
end
|