v1.5.23 - Framing for video heroes
Hero videos can now be framed and scaled with their own set of tags, framing tags work on homepages, and several blocks that ignored the background colour you chose now render it.
New features
- Hero videos can be framed, using their own set of tags. Anchor a video to an edge, compose it to thirds or quarters, fit the whole frame, or scale it down within it — the same vocabulary the image framing tags use, applied to video. They work on the hero and on the picture shown in post-list cards. See Hero images.
They are deliberately separate from the image tags. A framing tag doesn't only crop the hero — it also crops the matching picture in every listing that includes the post. A crop that suits a moving clip is routinely wrong for the still image beside it, so each medium is framed on its own terms. A video with no framing tag stays centred rather than borrowing your image tag, and the poster frame follows the video automatically.
Bug fixes
- Framing tags now work on a homepage. They were silently ignored there, for images as well as video — the framing you set applied everywhere except the one page most people set it on first.
- A hero video that was scaled well down no longer fails to appear. Below a certain size the video was never loaded at all, leaving an empty space where it should be.
- Video framing works whatever shape your video is. A vertical video on a wide screen, or a widescreen video on a phone, now scales and crops correctly instead of overflowing its frame.
- A sign-up block set to your accent colour renders in your accent colour. Full-width blocks were rendering black instead.
- A sign-up block set to transparent is transparent — at every width. It was rendering as a solid black panel.
- The sign-up form is legible on a transparent block. The email field, its underline and its label are now drawn in your page's own colours rather than always in white.
- A transparent full-width sign-up block no longer carries extra internal spacing, which had been reading as a doubled margin.
- A full-width header block with a background image keeps the spacing inside its text panel. The panel kept its blur and rounded corners but had lost its internal padding, so the text sat hard against the edges.
None of the block problems were related to your colour scheme, despite looking like it — the theme was misreading a signal Ghost attaches to the block.
Under-the-hood improvements
- A header with no image can now carry a flat background colour. The theme used to paint a soft fade behind the title area, which exists to blend a title out of a hero image. With no image there was nothing to blend, and the fade would have shown across any solid colour placed there. It is no longer drawn, which opens up collapsed headers with a colour of their own.
- Around sixteen styling rules that could never apply were removed, along with two stale references in the theme's JavaScript.
- Neutrino now declares Ghost 6.0 as its minimum version, which is what it is built and tested against.
Nothing about how you write or configure a site changes in this release, and no existing setting has moved or been renamed.