Does the “.or” syntax work with toFile queries in a pages section? I see it in the docs but not for this use case: some of my projects have a thumbnail set but others have a first block with an image.
This shows preview images…
...
listed:
headline: Projects
type: pages
status: listed
limit: 500
image: page.thumbnailimage.toFile
and so does this…
...
listed:
headline: Projects
type: pages
status: listed
limit: 500
image: page.galleryblocks.toBlocks.first.content.image.toFile
but this doesn’t show any preview image…
...
listed:
headline: Projects
type: pages
status: listed
limit: 500
image: page.thumbnailimage.toFile.or(page.galleryblocks.toBlocks.first.content.image.toFile)