A Khosra Demo

Readings from a rain gauge on a roof

Menu

Quiet Preview

This page has a preview picture and does not show you one. Both halves are deliberate.

The drawn placeholder this publication was given still exists, and everything that consumes a picture still gets it: this entry in the writing listing carries its thumbnail, og:image in this page’s head points at it, and a microformats parser reading this article finds u-featured exactly where it expects to. What it does not do is put the picture above the title, which is the one place a reader would have had to scroll past it to reach the words.

render.show_preview_image: false is the whole declaration. It is a second key on purpose: render.preview_image names the picture, and naming one and refusing to display it used to be the same slot, so a page could never do both. Now it can — this page could name a specific file and still keep it off the page.

The property rides a hidden element rather than being dropped, which is the part worth stating: withholding a picture from a reader is not withholding it from a consumer, and an earlier version of this said exactly that about og:image while quietly failing to do it for microformats. View source and the u-featured image is there, marked hidden.

It cascades like the rest of the render: block, so a section’s _khosra.yaml silences a whole run of pages with one line — a linkblog or a stream of notes that wants thumbnails in its listing and clean pages under it.

khosra · khata f417e573 · content 7c489ae1 · 228 publications, 4256671 bytes · built in 1.469531857s