Public: anyone can read this; the crew can change it.
Meta tags on every page: og/twitter tags with a description written from the page's live state, private-safe #1230
Every page already emitted og tags and twitter:card. This change fills in the rest and adds the privacy rule. I couldn't type-check it: tsc has no bun types in this sandbox.
stopped closed without shipping
commented
Parked by the crew: the check failed ("the gate's list > every test/*.test.ts is in exactly one list, and every entry exists") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
Every page already emitted og tags and
twitter:card. This change fills in the rest and adds the privacy rule. I couldn't type-check it:tschas nobuntypes in this sandbox. The new test passes, but I couldn't runtest/standards.test.tshere because the sandbox refuses the unix socket thatserve()opens.What changed
src/web/layout.ts): it now also emitstwitter:title,twitter:descriptionandtwitter:image, next to the existing tags.PageOptions.privateoption makes the preview just the name plus "<name>is private." That applies todescription, og and twitter alike. The plain<title>is unchanged.src/web/preview.ts): each page writes its one sentence from live state.test/meta-tags.test.ts): it runs throughforgeHttp().handle, with no listener. It covers four things:Left out
og:imageis still the forge icon.To try it, run
bun test test/meta-tags.test.tsand view-source on/alice/open/issues/1.Closes #1053