Class: Octopress::Hooks::Page
- Inherits:
-
Jekyll::Plugin
- Object
- Jekyll::Plugin
- Octopress::Hooks::Page
- Defined in:
- lib/octopress-hooks.rb
Instance Method Summary collapse
-
#post_init(post) ⇒ Object
Called after Page is initialized allows you to modify a # page object before it is added to the Jekyll pages array.
-
#post_render(post) ⇒ Object
Called after the post is rendered with the converter.
-
#post_write(post) ⇒ Object
Called after the post is written to the disk.
-
#pre_render(post) ⇒ Object
Called before post is sent to the converter.
Instance Method Details
#post_init(post) ⇒ Object
Called after Page is initialized allows you to modify a # page object before it is added to the Jekyll pages array
35 36 |
# File 'lib/octopress-hooks.rb', line 35 def post_init(post) end |
#post_render(post) ⇒ 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.
49 50 |
# File 'lib/octopress-hooks.rb', line 49 def post_render(post) end |
#post_write(post) ⇒ 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.
56 57 |
# File 'lib/octopress-hooks.rb', line 56 def post_write(post) end |
#pre_render(post) ⇒ Object
Called before post is sent to the converter. Allows you to modify the post object before the converter does it’s thing
42 43 |
# File 'lib/octopress-hooks.rb', line 42 def pre_render(post) end |