Class: Jekyll::PageHooks
- Inherits:
-
Plugin
- Object
- Plugin
- Jekyll::PageHooks
- Defined in:
- lib/jekyll-page-hooks.rb
Overview
Extended plugin type that allows the plugin to be called on varous callback methods.
Instance Method Summary collapse
-
#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_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.
17 18 |
# File 'lib/jekyll-page-hooks.rb', line 17 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.
23 24 |
# File 'lib/jekyll-page-hooks.rb', line 23 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
11 12 |
# File 'lib/jekyll-page-hooks.rb', line 11 def pre_render(post) end |