also looking at this
fix(site): derive the structured data, and give every head the same colours
#61
8 files
+14
-68
| @@ -7,7 +7,10 @@ | ||
| 7 | 7 | // The preview cards are generated from config/images.ts by |
| 8 | 8 | // `buddy generate:images`: one per page that has its own, else the site card. |
| 9 | 9 | // The prices in the structured data come from the same plans the pricing |
| 10 | // page renders, so a search result can never quote an old price. | |
| 10 | // page renders, and the version and the macOS floor come from the same | |
| 11 | // release.json the download button reads, so a search result can never quote | |
| 12 | // an old price or a version nobody can download. | |
| 13 | import release from '../data/release.json' | |
| 11 | 14 | import { PLANS } from '../../app/Billing/plans' |
| 12 | 15 | |
| 13 | 16 | const origin = 'https://uplink.stacksjs.com' |
| @@ -26,8 +29,10 @@ const software = { | ||
| 26 | 29 | 'url': origin, |
| 27 | 30 | 'description': 'Text your Mac from anywhere, even over satellite, and Claude Code or Codex answers by text.', |
| 28 | 31 | 'applicationCategory': 'DeveloperApplication', |
| 29 | 'operatingSystem': 'macOS 13 or later', | |
| 32 | 'operatingSystem': `macOS ${release.minimumMacOS} or later`, | |
| 33 | 'softwareVersion': release.version, | |
| 30 | 34 | 'image': `${origin}/social/og.png`, |
| 35 | 'sameAs': ['https://github.com/stacksjs/uplink'], | |
| 31 | 36 | // Stored in cents; schema.org wants the decimal amount. |
| 32 | 37 | 'offers': PLANS.map(plan => ({ |
| 33 | 38 | '@type': 'Offer', |