superbox
superbox copied to clipboard
Next function not working
I'm trying to implement Superbox in an environment where the images are populated by using some Liquid syntax:
{% for post in posts %}
<div>
<img src="{{meta.thumb}}" data-img="{{meta.image}}" alt="">
</div>
{% endfor %}
My images seem to display correctly, but the "next" or "previous" functions do not appear to work. And when I click on a different image than I am currently viewing, it just reloads the existing image. Any insight on that?
Do you have an example?