module Middleman::Presentation::Helpers::Image

Images helpers

Public Instance Methods

image(image) click to toggle source

Create entry for single image

@param [String] image

The path to the image, e.g. 'img/image1.png'
# File lib/middleman-presentation-helpers/helpers/image.rb, line 14
def image(image)
  ImageGallery.image_gallery Array(image), id: SecureRandom.hex
end