Hi everyone,
I've been looking at a number of sites people publish with Silex, and one small thing keeps coming back: many of them ship without a page title and without a language set on the <html> tag.
Both matter more than they look:
- a missing
<title> means broken browser tabs, weak SEO, and a poor link preview when the page is shared
- a missing
lang means a screen reader can mispronounce the whole page, and it's a basic accessibility requirement
Right now nothing in the flow nudges you to set them, so it's easy to publish without ever thinking about it. Since accessibility and clean output are a big part of where we want Silex to go, I'd like us to figure out a good mechanism so that a normal site comes out right by default.
A few directions, none decided:
- inherit the site language from the project settings, with a sensible default, instead of leaving it empty
- ask for (or require) a page title before publishing
- an optional pre-publish check that flags a missing title / lang / alt text
- better defaults so a fresh page already has a title and a language
What would feel helpful versus annoying to you when you build? If you've hit this yourself, or have a better idea for where the nudge should live, I'd love your input. The goal is to keep Silex simple while making accessible, well-formed pages the easy path.
Thanks,
Chris