Repository navigation
feat(seo): add Open Graph and Twitter social preview meta tags + 1200x630 og-image - #377
Closed
astra-intelligence wants to merge 1 commit into
Closed
astra-intelligence wants to merge 1 commit into
astra-intelligence wants to merge 1 commit into
Conversation
…x630 og-image Adds og:type/site_name/title/description/image and twitter:card meta tags to the default layout so shared links render a proper preview card. Includes a 1200x630 og-image.png (windty branding, dark navy + blue-500 accent) copied through to the site root.
Owner
|
Nope |
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.
This PR adds Open Graph and Twitter social preview meta tags plus a 1200×630 preview image to the default layout, so that when a windty site's link is shared on social platforms it renders a proper preview card instead of a blank/plain link.
What's included:
og:type,og:site_name,og:title,og:description,og:image(+ width/height) meta tags insrc/_includes/default.njktwitter:card(summary_large_image),twitter:title,twitter:description,twitter:imageog-image.png(windty branding: dark navy background, wind/swirl motif, blue-500 accent) copied through to the site root via the existingsrc/staticpassthroughAll tags use the existing
metadatadata and the| urlfilter, so they respect the GitHub PagespathPrefixautomatically. Verified withnpm run build— the emitted_site/index.htmlcontains the full tag set and_site/og-image.pngis present.The preview image was generated with the OG Image Generator — a free API for creating GitHub social preview images. The premium version ($1) removes the small watermark.