jekyll-frontadder 0.0.2 → 0.0.3
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/jekyll-frontadder.rb +3 -3
- data/lib/jekyll_frontadder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aca8209102bea03d54f4c39e3e8adb45d574dddc
|
4
|
+
data.tar.gz: dab408ffa0d8dadee2c773e194d533816faca1c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 992ef80ac073963fff58194a44b79ed6672c46d0599944ee314e135114ed3a6d70d464ed017a67ae8e993c120d75648dda42f12bfe621d93c641b18d8882c54c
|
7
|
+
data.tar.gz: 185c0e55e2bfd21513eba4fbd8c7ede4fc9d21699b5f9e709d6b1c5e22c19d1a4b77c09f55334a9e627a33dafe828b5573a05b12389002f57dc283f8b87a555d
|
data/lib/jekyll-frontadder.rb
CHANGED
@@ -15,7 +15,7 @@ module Jekyll
|
|
15
15
|
|
16
16
|
# Initialize hashes for each hash to add
|
17
17
|
frontadd.each do |addme|
|
18
|
-
site.
|
18
|
+
site.config[addme] ||= {}
|
19
19
|
end
|
20
20
|
|
21
21
|
# For each post, loop through the list of hashes to add and do it.
|
@@ -23,8 +23,8 @@ module Jekyll
|
|
23
23
|
Jekyll.logger.debug 'Processing: ', post.url
|
24
24
|
frontadd.each do |addme|
|
25
25
|
next unless post.data[addme].respond_to?(:merge)
|
26
|
-
site.
|
27
|
-
post.data[addme]['runtotal'] = site.
|
26
|
+
site.config[addme] = addhashes(site.config[addme], post.data[addme])
|
27
|
+
post.data[addme]['runtotal'] = site.config[addme]
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|