galleries
The galleries.twig view renders a page showing all of the galleries within an account.
The galleries object
The galleries view can access the galleries object to display information about each gallery such as the gallery's main image and name with a link through to the gallery page, e.g.
{% for gallery in galleries %} <a href="{{ gallery.url }}"> <img src="{{ gallery.photo_url }}"> {{ gallery.name }} </a> {% endfor %}
Excluding the home page images gallery
Most themes will be built with a gallery that is used to display large (hero) images on the theme's home page, known as a 'home page images' gallery.
You may want to exclude this from displaying on the galleries page using some Twig code, i.e.
{% for gallery in galleries if gallery.name|lower != 'home images (launcher theme)' %} <a href="{{ gallery.url }}"> <img src="{{ gallery.photo_url }}"> {{ gallery.name }} </a> {% endfor %}
Be careful to make sure that you are using the correct name for the gallery as not all themes will have the same name for the home images gallery.
The items partial
The latest versions of our themes will be rendering galleries using the items partial.