custom_update_tags 0.0.4 → 0.0.5
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: 518a32e3e88c3fe35f8e50820b6d64e141fab62b78a0aea73832d669c735e7db
|
4
|
+
data.tar.gz: a35d963f10c47bdbedde3931db560c943c06a74c30451e2ac3ba789cc6c8a322
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab294372f0fd0d513b3edc7d6c4658df237becc4b8c8656c71137b8ebe65d5fb291fe929042fe9dbfc2bbc1b70f4d8d668b26524010ed23db8d4c50a5238d22a
|
7
|
+
data.tar.gz: fd1dbb56853a958728ccc9236b26cc1d083ff16585e0a5108bfbe999a2f6b160f9e2234b5a205eaa69c5855ecb191756d5e3e9eedf6eb779e0c81fdf9056a25f
|
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[collections] %}
|
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
|