octopress-hooks 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/octopress-hooks.rb +7 -3
- data/lib/octopress-hooks/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: dd69c98bc8337275d5b72a08567470fd2ca44ec2
|
4
|
+
data.tar.gz: 5feead0c6d8d1e7be2fbef7e05146bf9e66936e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46edce7df9ba106fd554da4da903ce0e876f3badb6eee0477775dfa17fda127c0c2d8499d36920ea9e3665dc76569be9dc9ad7341d86d1a2a8ff30d105711cdf
|
7
|
+
data.tar.gz: 768660aec8ebb54a39df0d0ad9fd60ed2c088c9ea0652e922e39be2d37905690fc5215603a06ad8b1f02b47883a8e8f0b7c6eba1b40f6ff0ba6c127461ef0f1d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### 2.4.1 - 2015-01-30
|
4
|
+
- Fix: Collection rendering issues for no-output collection items.
|
5
|
+
|
3
6
|
### 2.4.0 - 2015-01-30
|
4
7
|
- New: Pages, Posts, and Documents now have a `merge_payload` method which lets you modify the payload for each page before render.
|
5
8
|
|
data/lib/octopress-hooks.rb
CHANGED
@@ -270,15 +270,19 @@ module Jekyll
|
|
270
270
|
|
271
271
|
class Renderer
|
272
272
|
alias_method :old_render_liquid, :render_liquid
|
273
|
+
alias_method :old_run, :run
|
273
274
|
attr_accessor :output
|
274
275
|
|
275
|
-
def
|
276
|
+
def run
|
276
277
|
document.pre_render if document.respond_to?(:pre_render) && document.hooks
|
278
|
+
old_run
|
279
|
+
end
|
277
280
|
|
281
|
+
def render_liquid(content, payload, info, path = nil)
|
278
282
|
if document.respond_to?(:merge_payload) && document.hooks
|
279
|
-
old_render_liquid(
|
283
|
+
old_render_liquid(content, document.merge_payload(payload.dup), info)
|
280
284
|
else
|
281
|
-
old_render_liquid(
|
285
|
+
old_render_liquid(content, payload, info)
|
282
286
|
end
|
283
287
|
end
|
284
288
|
end
|