Class: Octopress::Hooks::Page
- Inherits:
-
Jekyll::Plugin
- Object
- Jekyll::Plugin
- Octopress::Hooks::Page
- Defined in:
- lib/octopress-hooks.rb
Instance Method Summary collapse
-
#merge_payload(payload, page) ⇒ Object
Called right after pre_render hook.
-
#post_init(page) ⇒ Object
Called after Page is initialized allows you to modify a # page object before it is added to the Jekyll pages array.
-
#post_render(page) ⇒ Object
Called after the post is rendered with the converter.
-
#post_write(page) ⇒ Object
Called after the post is written to the disk.
-
#pre_render(page) ⇒ Object
Called before post is sent to the converter.
Instance Method Details
#merge_payload(payload, page) ⇒ Object
Called right after pre_render hook. Allows you to act on the page’s payload data.
Return: hash to be deep_merged into payload
62 63 64 |
# File 'lib/octopress-hooks.rb', line 62 def merge_payload(payload, page) payload end |
#post_init(page) ⇒ Object
Called after Page is initialized allows you to modify a # page object before it is added to the Jekyll pages array
47 48 |
# File 'lib/octopress-hooks.rb', line 47 def post_init(page) end |
#post_render(page) ⇒ Object
Called after the post is rendered with the converter. Use the post object to modify it’s contents before the post is inserted into the template.
70 71 |
# File 'lib/octopress-hooks.rb', line 70 def post_render(page) end |
#post_write(page) ⇒ Object
Called after the post is written to the disk. Use the post object to read it’s contents to do something after the post is safely written.
77 78 |
# File 'lib/octopress-hooks.rb', line 77 def post_write(page) end |
#pre_render(page) ⇒ Object
Called before post is sent to the converter. Allows you to modify the post object before the converter does it’s thing
54 55 |
# File 'lib/octopress-hooks.rb', line 54 def pre_render(page) end |