Configuration

---
type: 'gallery'
---

Specify type in front-matter will change the template lookup order.

Resources Configuration

These settings are under the resource specified in gallery_resources.

title

Title of image.

---
title: 'Gallery'
---

default: no title

weight

---
weight: 3
---

default: default order

Headless Bundle

Hugo supports an amazing feature called Headless Bundle, which elegantly resolved the resources publish issue.

For example, if you don’t want to publish the resources of the gallery layout, you can create a leaf bundle and specified headless = true in index.md’s front-matter. These resources will only be used during rendering process. In other word, no file will be generated to /public folder.

Checkout Headless Bundle for more details.