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

List images in directory #42

Open
briceambrosiak opened this issue Aug 21, 2023 · 2 comments
Open

List images in directory #42

briceambrosiak opened this issue Aug 21, 2023 · 2 comments

Comments

@briceambrosiak
Copy link

briceambrosiak commented Aug 21, 2023

Instead of listing images manually, it would be nice to be able to put a folder and all images in the folder would be displayed in the gallery. See this plugin: https://github.com/michaijtsma/grav-plugin-dir-gallery (but yours is nicer)

@s22-tech
Copy link

I agree. This would be a very nice addition. Thanks!

@dbuchhorn
Copy link

This is already possible if Twig is used

[gallery]
{% for image in page.media | sort %}
  {{  image | markdown }}
{% endfor %}
[/gallery]

Then "Process Twig First" must be enabled in the Advanced Tab.

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

No branches or pull requests

3 participants