Objects Gallery
The objects gallery provides a browsable, searchable interface for your collection at /objects/.
Gallery Page
There are two modes, controlled by the browse_and_search setting in your _config.yml:
Browse and Search Mode
When browse_and_search is true (the default), the gallery includes a filter sidebar and a search bar for exploring your collection.

Search uses full-text indexing powered by Lunr.js. It searches across title, creator, description, period, subjects, and medium — with title matches weighted most heavily. Type a few characters and results update instantly.
Filters let you narrow the gallery by five facets across two sections:
Type filters by the auto-detected media type of each object:
| Value | Description |
|---|---|
| Image | Self-hosted or IIIF images |
| Video | YouTube, Vimeo, or Google Drive videos |
| Audio | Self-hosted audio files (MP3, OGG, M4A) |
Medium/Genre filters by the medium column in your objects.csv (previously called object_type). Values are user-defined — for example, map, textile, photograph, or painting.
The remaining facets work as before:
| Facet | CSV column | Example values |
|---|---|---|
| Creator | creator |
Unknown, Juan de Cuellar |
| Period | period |
Colonial, 18th century |
| Subjects | subjects |
weaving, cartography, Lima |
Each facet shows the number of matching objects in parentheses. Select multiple values within a facet to broaden results (OR logic), or combine facets to narrow them (AND logic).
Video and audio objects display icon placeholder thumbnails in the gallery grid instead of blank spaces. Each gallery item also carries data-media-type and data-medium attributes for styling or scripting purposes.
Sorting offers two options:
- Title — Alphabetical (A–Z or Z–A)
- Year — Chronological, using the
yearcolumn from your CSV
Active filters and search terms appear as removable chips above the grid. Click Clear all to reset.
Simple Grid Mode
When browse_and_search is false, the gallery shows a plain grid of object cards without filtering or search.
Populating Gallery Metadata
For the best gallery experience, fill in these columns in your objects.csv:
mediumfor every object — powers the Medium/Genre filter (the column was previously calledobject_type; both names are accepted)subjectswith 2–4 comma-separated terms — powers the Subjects filteryear— enables chronological sortingdescription— indexed for full-text searchcreatorandperiod— power their respective filters
Without these columns, the gallery still works but filtering and sorting options are limited.
Objects added or uploaded via the Compositor appear in the gallery after publishing.
Featured Objects on the Homepage
You can showcase a selection of objects on your homepage by marking them as featured:
- In
objects.csv, setfeaturedtoyesfor the objects you want to highlight - In
_config.yml, setshow_sample_on_homepage: trueundercollection_interface
collection_interface:
show_sample_on_homepage: true
featured_count: 4
The homepage displays up to featured_count objects (default: 4). If you mark fewer objects as featured than the count allows, the remaining slots are filled randomly from your collection.
Homepage Objects Link
The “View the objects” link on the homepage is controlled separately:
collection_interface:
show_link_on_homepage: true # Show or hide the link to /objects/
Even when the link is hidden, the gallery page remains accessible through the navigation menu.
Configuration
All gallery settings live under collection_interface in _config.yml:
collection_interface:
browse_and_search: true # Filter sidebar and search bar
show_link_on_homepage: true # "View the objects" link on homepage
show_sample_on_homepage: true # Featured objects grid on homepage
featured_count: 4 # Number of homepage objects
See Configuration Reference for full details on each setting.
See Also
- Objects — Defining objects and object pages
- Object Columns — Complete column reference for objects.csv
- Configuration Reference — Collection interface settings