custom_update_tags 0.0.5 → 0.0.7
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/lib/update_tags.rb +2 -2
- 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: c8c9bb7f1787c61ccdb1a48131abc59c9f3a8f2714d56ba7fe7260dde0497150
|
4
|
+
data.tar.gz: ab43cddc12906e76cf89d0f685f19bc8ab748639ac924d5c2df5cb5f346f67f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f23f05ae05b101c8caea69c2661a7f81d4484be3e76d3683ea9928c2f5830e1c8bd8998cc6b4357f051eb2ecd2b93be05b3f2118592aceb9225c64d23a38c1f
|
7
|
+
data.tar.gz: 2ced78d2e0a76fb3a08f742bc64c8187dc1ae236d9fd1c9ed0d69c8bba33f9226f59f98a91c81bd0e00b17cf4c6f7fcf8ad897fe32b71c644615bd8cd0a75105
|
data/lib/update_tags.rb
CHANGED
@@ -38,7 +38,7 @@ class UpdateTags
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def blog_post_filenames
|
41
|
-
directories = ["./_posts", "./_building", "./_writing", "./_notes"]
|
41
|
+
directories = ["./_posts", "./_building", "./_writing", "./_notes", "./_misc"]
|
42
42
|
@blog_post_filenames ||= directories.inject([]) do |acc, directory|
|
43
43
|
entries = Dir.entries(directory) - [".", ".."]
|
44
44
|
entries = entries.map { |entry| "#{directory}/#{entry}" } # Prepend the directory path
|
@@ -90,7 +90,7 @@ class UpdateTags
|
|
90
90
|
{% assign collections = 'posts,building,writing,notes,misc' | split: ',' %}
|
91
91
|
|
92
92
|
{% for collection_name in collections %}
|
93
|
-
{% assign current_collection = site[
|
93
|
+
{% assign current_collection = site[collection_name] %}
|
94
94
|
{% for post in current_collection %}
|
95
95
|
{% if post.tags contains tag %}
|
96
96
|
{% assign tagged_posts = tagged_posts | push: post %}
|