Verified social-media handles for twitter:site /
twitter:creator and the canonical organization sameAs list emitted
into JSON-LD on every generated page.
Why this lives in one file: the OpenGraph crawler, the Twitter
card validator, and Google's structured-data NewsMediaOrganization
graph all expect the same handle and the same sameAs URLs. Keeping
them in one constant avoids drift between the four generators.
Empty-string semantics: when a handle is not yet provisioned
the matching constant is '' (empty string). The emit helpers
skip emitting an empty tag rather than producing
<meta name="twitter:site" content="">, which Twitter rejects as
malformed.
Description
Verified social-media handles for
twitter:site/twitter:creatorand the canonical organization sameAs list emitted into JSON-LD on every generated page.Why this lives in one file: the OpenGraph crawler, the Twitter card validator, and Google's structured-data
NewsMediaOrganizationgraph all expect the same handle and the same sameAs URLs. Keeping them in one constant avoids drift between the four generators.Empty-string semantics: when a handle is not yet provisioned the matching constant is
''(empty string). The emit helpers skip emitting an empty tag rather than producing<meta name="twitter:site" content="">, which Twitter rejects as malformed.