diff --git a/website/README.md b/website/README.md index b5fb834..560967d 100644 --- a/website/README.md +++ b/website/README.md @@ -40,6 +40,8 @@ changes. - `tests/metadata.test.ts` checks the title and description lengths, the canonical address, and that the share image is a 1200 x 630 PNG on the Open Graph card and a large Twitter card. - `tests/analytics.test.ts` checks the PostHog setup, the `?internal=1` opt-out and the Content-Security-Policy. +- `tests/structuredData.test.tsx` checks the SoftwareApplication data restates the page and states no price, offer, + rating, review or download link. ## Where things live @@ -55,6 +57,7 @@ changes. | Visit counts (PostHog) | `lib/analytics.ts` | | Screenshots and alt text | `lib/screenshots.ts`, `public/images/` | | Favicon and Apple touch icon | `app/icon.png`, `app/apple-icon.png` (from the app icon) | +| Structured data for search engines (SoftwareApplication, no price or rating) | `lib/structuredData.ts` | ### The TestFlight link diff --git a/website/app/page.tsx b/website/app/page.tsx index 544670d..e17ae53 100644 --- a/website/app/page.tsx +++ b/website/app/page.tsx @@ -2,6 +2,7 @@ import { BetaSignup } from "@/components/BetaSignup"; import { Screenshot } from "@/components/Screenshot"; import { SHOTS } from "@/lib/screenshots"; import { SITE_NAME, TESTFLIGHT_URL, betaCta, showRecorderLink } from "@/lib/site"; +import { jsonLdText, softwareApplicationJsonLd } from "@/lib/structuredData"; const cta = betaCta(); const ctaTrack = { "data-track": "join_beta_clicked", "data-track-destination": cta.testflight ? "testflight" : "signup" }; @@ -9,6 +10,11 @@ const ctaTrack = { "data-track": "join_beta_clicked", "data-track-destination": export default function Home() { return ( <> + {/* For search engines: what the app is, restating this page (lib/structuredData.ts). */} +