Repository navigation
Conversation
Rule URLs carried a lastmod in the sitemap and posts did not, so a search engine had no date to tell a new or revised post from an old one. Each post's entry now takes its updatedDate, or its pubDate when it has none, read from the frontmatter the same way the rule dates are.
A draft post on Astro Metadata Lab, 121 pages with one deliberate change to the head each, opened in four browsers and shared in five chat apps in October 2026. It reports which of the HTML, Open Graph and Twitter values each client used, how missing tags, relative and SVG images, canonicals, noindex, redirects and 404s showed in previews, what the parser did with a misplaced element, noscript metadata and unescaped JSON-LD, and how favicon declarations and color-scheme resolved. Each finding links the rule that covers it. Kept as a draft: the link-preview and parser results are recorded in the lab but not yet published in its repository.
cevdetch
force-pushed
the
site/metadata-lab-post
branch
from
November 28, 2026 20:18
5e9ec46 to
0a60a41
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
content/blog/broken-metadata-in-browsers-and-chat-apps.md: a post on Astro Metadata Lab, 121 test pages with one deliberate change to the head each. It covers the method, the clients tested, the findings (field precedence, fallbacks, card layout, images, canonical/noindex/redirect/404, parser behaviour, favicons, colour schemes), what it means for authors, and the deadhead rules each finding relates to. It links the lab, its repository and Astro Minimal Template.draft: true, see below.site/astro.config.mjs: blog posts get a sitemaplastmod(updatedDate, elsepubDate), read from frontmatter like the rule dates. Separate commit.Why
The post gives the blog a second measured piece and shows, with recorded client behaviour, why the social and head rules exist. The sitemap change gives search engines a date for each post, which rule pages already had.
Why it is a draft
The public lab repository (
mainatab2f459) and the live result pages hold only the first batch: favicon results in four browsers, dark-mode colour-scheme results, the theme-color preview observation and HTTP probes. The link-preview runs (S005–S051), the parser/head, JSON-LD, language and viewport runs (B014–B024) and the light-mode follow-up (B012/B013) are recorded in the lab checkout but not committed or pushed, so the live result pages still say "not tested" for them. Push and deploy those results, then flipdrafttofalse(and setpubDateto the publishing day).Claims to check
Sourced only from the unpushed lab results:
og:titlegave WhatsApp, Molly, LinkedIn the<title>, and Discord no title and no description; noog:descriptiongave WhatsApp/Molly the meta description and Discord none; noog:imagegave no image anywhere. Removingog:type,og:urlor image dimension tags changed nothing visible.summary, no card andsummary_large_image; Discord showed the summary layout unlesssummary_large_imagewas set. The "large only with summary_large_image" half is inferred from the first batch (S007) plus the card batch (S018).og:imageworked in LinkedIn, Molly, Discord, Instagram and not WhatsApp; SVG only in Instagram; a 404 image gave placeholders in Discord and Instagram.<div>moved title, description, canonical and og:title into<body>in Firefox and Brave; noscript metadata behaved differently with scripting on/off in Firefox; unescaped JSON-LD failed to parse and ran the injected<img onerror>in Firefox, the<version did not; charset pages rendered fine in all four browsers because the header named UTF-8; Vanadium laid out the no-viewport page at desktop width.light darkanddark lightas light,darkas dark.From the published results, but worth a second look:
Verification
pnpm check:siteandDEADHEAD_DRAFTS=1 pnpm check:site: no findings; budget, SEO and crawler checks pass (draft build: 250 pages, post 7.4 kB gzip withinblogPostMaxGzip, blog index 1204 / 2000). No budget changes.pnpm site:check0 errors/warnings/hints;pnpm test908 pass.BlogPostingJSON-LD with all article fields, byline, Atom entry,llms.txtentry, sitemaplastmod2026-11-12 for the post and 2026-10-13 / 2026-10-05 for the existing posts in the normal build. Every internal link in the post resolves to a built page; the external lab, repository and template URLs return 200.