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.
19 20 |
# File 'lib/jekyll-page-hooks.rb', line 19 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.
25 26 |
# File 'lib/jekyll-page-hooks.rb', line 25 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
13 14 |
# File 'lib/jekyll-page-hooks.rb', line 13 def pre_render(post) end |