Skip to content

Migrate meta tags to Lume's metas plugin - #76

Closed
kms0219kms wants to merge 4 commits into
Erisa:mainfrom
kms0219kms:main
Closed

kms0219kms wants to merge 4 commits into
Erisa:mainfrom
kms0219kms:main

Conversation

@kms0219kms

Copy link
Copy Markdown

Summary

  • Replaces the hand-written OG/Twitter/description <meta> tags in BaseHead.vto with Lume's metas plugin, configured via a metas front-matter object per page instead of threading title/description/image props through component calls.
  • Canonical link + og:url are now normalized in one place (_config.ts) to strip .html/index.html, matching how the host actually serves clean URLs.
  • Blog posts derive their metas automatically from existing title/tagline/image fields via src/blog/_data.yml, so no per-post changes were needed.

Bugs fixed along the way

  • generator meta was outputting the literal broken string {Astro.generator}, a leftover from the old Astro-based site — now correctly shows Lume 3.2.4.
  • twitter:card was never actually being emitted, so Twitter/X likely wasn't rendering rich cards at all.
  • Blog post og:image used a root-relative path (/img/...), invalid per the OG spec — now resolved to an absolute URL.
  • devices.md and blog/index.vto were silently inheriting the homepage's og:title/og:description due to how the old prop-drilling worked — they now have their own accurate metadata.

Test plan

  • deno task build succeeds
  • Manually inspected generated <head> for every page (index, contact, privacy, domains, devices, blog/index, both blog posts, 404) — OG/Twitter/description/canonical tags all match expected content
  • Visual check in a social share debugger (e.g. Twitter Card Validator / Facebook Sharing Debugger) once deployed

🤖 Generated with Claude Code

Fixes #75

Replaces the hand-written OG/Twitter/description meta tags in BaseHead.vto
with Lume's metas plugin, driven by a `metas` front-matter object per page
instead of threading title/description/image props through components.

Also fixes a few bugs found along the way: the generator tag was outputting
a broken literal `{Astro.generator}` leftover from the old Astro site,
twitter:card was never actually emitted, blog post og:image used a
root-relative URL, and devices.md/blog/index.vto were silently inheriting
the homepage's og:title/description.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@netlify

netlify Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for erisauk ready!

Name Link
🔨 Latest commit a0ddded
🔍 Latest deploy log https://app.netlify.com/projects/erisauk/deploys/6ade9248da108ba3ea52bad7
😎 Deploy Preview https://deploy-preview-76--erisauk.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Useless {Astro.generator} in meta tag

2 participants