The default output that the gallery_item produces when output directly to the template. The default output may change at any time. Template developers should avoid using this and should handle the output of gallery items themselves
ExampleLoad one gallery and render each gallery_item caption and image{% gallery %} loads a single gallery; items is the list of gallery_item records with caption, alt, href, and image.
Liquid
{%- gallery var album = "Homepage Slideshow" -%}
{%- if album.is_valid -%}
<h2>{{ album.title }}</h2>
<ul class="gallery">
{%- for slide in album.items -%}
<li>
<a href="{{ slide.href }}">
<img src="{{ slide.image.path }}" alt="{{ slide.alt }}" />
</a>
<p>{{ slide.caption }}</p>
</li>
{%- endfor -%}
</ul>
{%- endif -%}