Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌟 Shortcode: Gallery #428

Closed
mircea-pavel-anton opened this issue Jan 13, 2023 · 1 comment · Fixed by #450
Closed

🌟 Shortcode: Gallery #428

mircea-pavel-anton opened this issue Jan 13, 2023 · 1 comment · Fixed by #450
Labels
enhancement New feature or request

Comments

@mircea-pavel-anton
Copy link
Contributor

Is your feature request related to a problem? Please describe.

In my website, I need the ability to easily showcase multiple related images and I would like a better solution than to just use a bunch of {{< figure ... >}} shortcodes.

Describe the solution you'd like

A {{< gallery ... >}} shortcode that would match multiple images given a regex would be a nice solution for this.

Example/Expected usage:

# To add all png images in a directory:

{{< gallery source="img/*.png" >}}

# To add all pngs that contain `gallery_` in the name:

{{< gallery source="img/gallery_*.png" >}}

Describe alternatives you've considered

N/A

Additional context

Useful links:

@nunocoracao
Copy link
Owner

Same as the other... array seems better... if you do folder,for example, it might be hard to sort the images. An array it's more verbose but more flexible and easier to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants