একটি খসড়া ডেমো

ছাদের এক বৃষ্টিমাপকের হিসাব

মেনু

Named, Not Shown

A picture named in frontmatter that this page’s prose never renders — the case where a preview has to be opened rather than merely resolved.

There is a hero above this paragraph, and that is the point. A Small Drawing also names its preview, but its body shows the same file, so the theme skips drawing a lead image rather than printing one picture twice. Here the body shows nothing, so the theme draws it — one flag, PreviewInBody, carries that difference, and it has to, because nothing else about the two cases differs any more.

It used to. A named file reached every consumer as a bare URL: the renderer can turn a name into an address and nothing else, so og:image went out with no dimensions and the hero above was the full-size upload regardless of how wide the box was. The derivatives existed the whole time — the engine writes them for every picture under assets/ — but a derivative’s filename is a hash of its source’s content, and only the pass that reads the file computes one.

So the feature that reads pictures reads this one too. View source and three things follow from that: the og:image:width and og:image:height in the head are measured rather than absent, the srcset on the hero names generated widths, and this page’s row in the listing offers a thumbnail-sized file instead of an 1800-pixel photograph. Whatever _river-gauge.jpg.yaml says about the file would arrive too, the same as for a picture written into the prose.

The name is root-relative here, /assets/river-gauge.jpg, which resolves against the shared pool rather than this publication’s own directory — a page can name either, and the address a browser is given is the one the engine emits rather than the reference as written.

khosra · khata 88cb5d68 · content 380f1670 · 228 publications, 4256671 bytes · built in 1.495908104s