Middleman::Presentation::Helpers
This gem contains helpers for
middleman-presentation
:
- Image gallery
- Images
- Some methods which could be core or helpers
Installation
Add this line to your application's Gemfile:
gem 'middleman-presentation-helpers'
And then execute:
$ bundle
Or install it yourself as:
$ gem install middleman-presentation-helpers
Usage
Image gallery
If you want to create an image gallery in your slides you can use the
image_gallery
-helper. It just needs an id for the gallery and a list of images.
<%= image_gallery ['img/image1.png', 'img/image2.png'], id: 'my-gallery' %>
Images
If you want to create an image in your slides and want it to have a fancy style, you can use the
image
-helper. Just needs the name of the image.
<%= image 'img/image1.png' %>
Contributing
- Fork it ( https://github.com/[my-github-username]/middleman-presentation-helpers/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request