Repository navigation
fix(site): per-page social tags, accurate plan copy and SEO metadata - #24
Merged
Merged
Conversation
- Root layout sets only the Twitter card type, so each page's openGraph fills twitter:title/description instead of every page showing the homepage's. - Add pageOpenGraph() helper; /register and legal pages now carry og:image, their own descriptions and og tags. - Replace "Postgun is free" claims with free-plan wording when billing is on, mark Pro-only features, and read prices/limits from PLANS. - Short meta descriptions for comparison and use-case pages; titles kept under 60 characters. - /pricing: SoftwareApplication offers sharing the homepage @id, breadcrumb. Use cases: breadcrumb and related links. Pricing link in public headers. - Homepage offers only list Pro when billing is enabled. - Sitemap: real lastModified for comparisons and changelog, add legal pages. robots.txt: disallow /account, /billing, /admin. Drop canonical on noindex /login.
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
These fixes come from an SEO audit of the public pages.
Sharing previews
twitter.titleandtwitter.description. Next only copies a page's Open Graph title and description into the Twitter tags when those fields are empty, so every page shipped the homepage's Twitter title and description. The root now sets onlycard.pageOpenGraph()helper (src/lib/site.ts). Pages that setopenGraphreplace the root's whole object, so this helper puts back the type, site name and image./registerhad noog:imagebefore.Plan copy
/vs, and the Mailchimp and Mailcoach comparisons. It now says "free plan" where that applies, and Pro-only features say "on Pro". The wording followsbillingEnabled(), so self-hosted installs still say "free" or "no plan limits".PLANSinstead of being written into the copy.Titles and descriptions
descriptionfield of 150–160 characters for the meta description. The longersummary/introstays on the page./pricingnow uses its keyword title instead of "Pricing".Structured data and links
/pricing: a SoftwareApplication with offers that shares the homepage's/#app@id, plus a BreadcrumbList.<h3>inside<summary>.Crawling
lastModifiedonly where a real date exists: each comparison's review month and the latest changelog release. Terms, privacy and refunds are now in the sitemap.robots.txtalso disallows/account,/billingand/admin./loginpage.Notes for reviewers
LIFETIME_DEAL_ENABLEDonly, not the sold count, so the homepage needs no database query for signed-out visitors. It can still list the offer after the deal sells out./pricingchecks real availability.next dev, using a Facebook crawler user agent so metadata lands in<head>. Checked with billing on and with billing off:/,/vs,/vs/plunk, a use case, docs, changelog, terms, register, login and/pricing./pricingreturns 404, and the free / "no plan limits" copy shows./pricingwas not rendered with the lifetime deal on, because that path queries the database./pricingafter deploy.Checklist
npm run typecheck && npm run lint && npm run buildpass.typecheckandlintpass;buildwas not run.