You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update social previews to TypeScript/JavaScript - #11
Social previews now read “Your TypeScript/JavaScript, compiled to native.” The shared PNG and SVG banner name both languages, and Open Graph/Twitter titles and descriptions use the requested TypeScript/JavaScript order. The default image includes descriptive alt text, matching dimensions, and a versioned URL.
Beta builds now fetch social images from beta.perryts.com instead of the older production image. Blog structured data uses the same image URL, while canonical URLs stay on production. Production builds retain their default image origin.
Validation: Astro check passed with zero errors or warnings; the 600-page build and full multilingual blog checks passed. Inspected the generated image and verified social titles, image URLs, image dimensions, and canonical URLs on all 13 localized homepages. Workflow lint and deployment shell syntax checks passed.
Summary by CodeRabbit
Improvements
Social-preview images on Beta builds now use the Beta site’s origin; builds without this override continue to use the production origin.
Open Graph and Twitter previews now use updated title and description wording, revised image dimensions, and alternative text for the default image.
Blog post structured data now uses the same social-preview image URL as other page metadata.
Social image URLs now use a shared SEO helper that resolves against SOCIAL_IMAGE_ORIGIN when set, or the site URL otherwise. Beta builds set the variable to the Beta origin. Social metadata uses updated titles, descriptions, dimensions, and default-image alt text; blog structured data uses the resolved image URL.
Changes: Social image metadata
Layer / File(s)
Summary
Social image URL configuration src/lib/seo.ts, deploy-beta.sh, .github/workflows/deploy-beta.yml, README.md
The SEO module adds the default social image and a helper that resolves its URL against SOCIAL_IMAGE_ORIGIN or the site URL. Beta build commands set the origin to https://beta.perryts.com, and the README documents the behavior.
Social metadata and structured data src/layouts/Base.astro, src/pages/[lang]/blog/[slug]/index.astro
The base layout uses the shared image and URL helper for social metadata. Social titles and descriptions use “TypeScript/JavaScript,” dimensions change to 1731×909, and default-image alt tags are added. BlogPosting structured data uses the helper-generated image URL.
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
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.
Social previews now read “Your TypeScript/JavaScript, compiled to native.” The shared PNG and SVG banner name both languages, and Open Graph/Twitter titles and descriptions use the requested TypeScript/JavaScript order. The default image includes descriptive alt text, matching dimensions, and a versioned URL.
Beta builds now fetch social images from beta.perryts.com instead of the older production image. Blog structured data uses the same image URL, while canonical URLs stay on production. Production builds retain their default image origin.
Validation: Astro check passed with zero errors or warnings; the 600-page build and full multilingual blog checks passed. Inspected the generated image and verified social titles, image URLs, image dimensions, and canonical URLs on all 13 localized homepages. Workflow lint and deployment shell syntax checks passed.
Summary by CodeRabbit