mfg92 / hugo-shortcode-gallery

A theme component with a gallery shortcode for the static site generator hugo.
MIT License
359 stars 66 forks source link

Allow randomize distribution of images #48

Closed alexvanderberkel closed 2 years ago

alexvanderberkel commented 2 years ago

This will allow a randomize distribution of images within the gallery.

Usage example:

{{< gallery match="images/*" randomize=false rowHeight="200" margins="5" previewType="color" resizeOptions="600x600 q90 Lanczos" showExif=true loadJQuery=true thumbnailHoverEffect=enlarge embedPreview="true" >}}

mfg92 commented 2 years ago

Thank you @alexvanderberkel for your pull request.

I have adapted your changes in commit https://github.com/mfg92/hugo-shortcode-gallery/commit/cdafc822fbab1dbc730cfd7e1b94e6f47ed2a81e. It is now in main.

alexvanderberkel commented 2 years ago

You're welcome and thanks for the development of the code!