Skip to content

fix(site): per-page social tags, accurate plan copy and SEO metadata - #24

Merged
kerolosxgad merged 1 commit into
mainfrom
claude/searchfit-seo-audit-2f0b0a
Dec 3, 2026
Merged

kerolosxgad merged 1 commit into
mainfrom
claude/searchfit-seo-audit-2f0b0a

Conversation

@kerolosxgad

Copy link
Copy Markdown
Member

Summary

These fixes come from an SEO audit of the public pages.

Sharing previews

  • The root layout used to set twitter.title and twitter.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 only card.
  • New pageOpenGraph() helper (src/lib/site.ts). Pages that set openGraph replace the root's whole object, so this helper puts back the type, site name and image. /register had no og:image before.
  • Terms, privacy and refunds now have their own descriptions and Open Graph tags. Before, they inherited the homepage's.

Plan copy

  • Some copy said "Postgun is free", which contradicted the Pro plan: the footer, the docs FAQ (also emitted as FAQPage JSON-LD), /vs, and the Mailchimp and Mailcoach comparisons. It now says "free plan" where that applies, and Pro-only features say "on Pro". The wording follows billingEnabled(), so self-hosted installs still say "free" or "no plan limits".
  • Prices and limits come from PLANS instead of being written into the copy.

Titles and descriptions

  • Comparisons and use cases get a new description field of 150–160 characters for the meta description. The longer summary/intro stays on the page.
  • Every title I rendered is 60 characters or fewer. /pricing now 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.
  • Use-case pages: a BreadcrumbList and a "Related" links section.
  • A Pricing link sits in the public headers when billing is on.
  • The homepage lists Pro offers only when billing is on.
  • The homepage FAQ question is no longer an <h3> inside <summary>.

Crawling

  • The sitemap gives lastModified only 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.txt also disallows /account, /billing and /admin.
  • Removed the canonical tag from the noindexed /login page.

Notes for reviewers

  • The homepage lifetime offer checks LIFETIME_DEAL_ENABLED only, 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. /pricing checks real availability.
  • Rendered with next dev, using a Facebook crawler user agent so metadata lands in <head>. Checked with billing on and with billing off:
    • Heads checked on /, /vs, /vs/plunk, a use case, docs, changelog, terms, register, login and /pricing.
    • Self-hosted run: /pricing returns 404, and the free / "no plan limits" copy shows.
  • /pricing was not rendered with the lifetime deal on, because that path queries the database.
  • Worth running Google's Rich Results Test on /pricing after deploy.

Checklist

  • npm run typecheck && npm run lint && npm run build pass. typecheck and lint pass; build was not run.
  • I have read the Contributor License Agreement in CONTRIBUTING.md and I agree to it.

- 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.
@kerolosxgad
kerolosxgad merged commit 72816ee into main Dec 3, 2026
1 check passed
@kerolosxgad
kerolosxgad deleted the claude/searchfit-seo-audit-2f0b0a branch December 3, 2026 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant