Repository navigation
Migrate meta tags to Lume's metas plugin - #76
Closed
kms0219kms wants to merge 4 commits into
Closed
kms0219kms wants to merge 4 commits into
kms0219kms wants to merge 4 commits into
Conversation
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>
✅ Deploy Preview for erisauk ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
2 of 3 tasks
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.
Summary
<meta>tags inBaseHead.vtowith Lume'smetasplugin, configured via ametasfront-matter object per page instead of threadingtitle/description/imageprops through component calls.og:urlare now normalized in one place (_config.ts) to strip.html/index.html, matching how the host actually serves clean URLs.metasautomatically from existingtitle/tagline/imagefields viasrc/blog/_data.yml, so no per-post changes were needed.Bugs fixed along the way
generatormeta was outputting the literal broken string{Astro.generator}, a leftover from the old Astro-based site — now correctly showsLume 3.2.4.twitter:cardwas never actually being emitted, so Twitter/X likely wasn't rendering rich cards at all.og:imageused a root-relative path (/img/...), invalid per the OG spec — now resolved to an absolute URL.devices.mdandblog/index.vtowere silently inheriting the homepage'sog:title/og:descriptiondue to how the old prop-drilling worked — they now have their own accurate metadata.Test plan
deno task buildsucceeds<head>for every page (index,contact,privacy,domains,devices,blog/index, both blog posts,404) — OG/Twitter/description/canonical tags all match expected content🤖 Generated with Claude Code
Fixes #75