class Jekyll::Figurify
Our modifications to the markdown renderer to process images with figure captions
Public Class Methods
new(config)
click to toggle source
Calls superclass method
# File _plugins/jekyll-figurify.rb, line 10 def initialize(config) super @config = config['figurify'] ||= {} end
Public Instance Methods
generate(site)
click to toggle source
# File _plugins/jekyll-figurify.rb, line 15 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