Gallery views for Blacklight search results
Add this line to your Blacklight application's Gemfile:
gem 'blacklight-gallery'
And then execute:
$ bundle
Or install it yourself as:
$ gem install blacklight-gallery
Run the gallery generator for Sprockets:
$ rails g blacklight_gallery:install
Or for node based bundlers add blacklight-gallery masonry-layout@v4
as a dependencies and add this to your entrypoint:
import 'blacklight-gallery/vendor/assets/javascripts/imagesloaded.min.js'
import 'blacklight-gallery/app/assets/javascripts/blacklight_gallery/slideshow'
import 'blacklight-gallery/app/assets/javascripts/blacklight_gallery/masonry'
If you would like to add or remove any particular view either add or remove the following configurations from your Blacklight controller.
config.view.gallery.partials = [:index_header, :index]
config.view.masonry.partials = [:index]
config.view.slideshow.partials = [:index]
- Fork it ( http://github.com//blacklight-gallery/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 new Pull Request
- Edit
lib/version.rb
andpackage.json
to set the new version - Commit the changes e.g.
git commit -am "Bump version to X.X.X"
- Push release to rubygems
bundle exec rake release
- Push release to NPM
npm publish
- Create a release on github with the tag that was just created: https://github.com/projectblacklight/blacklight-gallery/releases/new