feat: Add SEO metadata, social banner, and repo links to demo - #28
Merged
Conversation
- Search-oriented title and meta description; canonical URL - Open Graph + Twitter card tags pointing at a generated 1280x640 social banner (demo/og-image.png, source in scripts/og-image.html) - JSON-LD WebApplication structured data - SVG favicon - Footer linking back to GitHub and npm with the install command
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.
Part of the visibility work in #23.
What
<title>("Text Diff Tool — Compare Two Strings Online"), meta description, canonical URL, and JSON-LDWebApplicationstructured data.demo/og-image.png, rendered fromscripts/og-image.html(regeneration command in that file's header comment). The banner shows a live-style diff sample including Korean + emoji.demo/favicon.svg, del/ins bars motif).No changes to the demo's behavior or to the library.
Verification
Drove
demo/index.htmlin headless Chrome via CDP: default word diff, char mode, empty inputs, and Korean+emoji word diff all render correctly (del/ins spans + timing); all meta tags present, JSON-LD parses, footer links resolve to the repo and npm. Layout verified by screenshot.Note
demo/og-image.pngdoubles as the GitHub social preview image — upload it manually at Settings → General → Social preview (API doesn't support it).