class Jekyll::Generators::Figurify
Our modifications to the markdown renderer to process images with figure captions TODO: probably could be a hook post_read.
Public Class Methods
Calls superclass method
# File _plugins/jekyll-figurify.rb, line 12 def initialize(config) super @config = config['figurify'] ||= {} end
Public Instance Methods
# File _plugins/jekyll-figurify.rb, line 17 def generate(site) site.pages .reject { |page| skip_layout? page.data['layout'] } .each { |page| figurify page, site } site.posts.docs .reject { |post| skip_layout? post.data['layout'] } .each { |post| figurify post, site } end