#490 Breadcrumbs and kinds of page in structured data
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#490
- pull request
- state:merged
Closes #474. **Changes:** - **Event pages:** - **Trail:** a `BreadcrumbList` (the timeline's owner, the timeline, the event) in a JSON-LD script of its own, after the page's `CreativeWork`. Search results can show the trail in place of the address. Like the rest of their structured data, private and labelled timelines' event pages have none. - **Link previews:** `og:type` is now `article`; timeline pages stay `website`. - **Help pages:** a trail of Help, then the page. - **Audience pages** (`/for/…`): their `WebPage` carries the trail they show above their heading (Home › Who it's for › the audience). - **Explore:** with the landing page on, it's described as a `CollectionPage`. - **Download:** its `WebPage` describes the `SoftwareApplication`, with its version and release date when the latest release is known. The home page's description of the software now comes from the same helper (`softwareData`). **Code:** `breadcrumbData`, `entityBreadcrumbs`, `softwareData` and a `type` option for `pageMetadata`, all in `platform/lib/sharing.js`. **Tests:** - **Unit:** `entity-pages.test.mjs` covers the trails, the preview types and the software data. - **PostgreSQL:** `sharing-postgres` checks a real moment page's trail and its `og:type`. Its HTTP checks pass here; the browser steps run in CI. - **Run locally:** `next-platform` and `next-postgres` pass. **Docs:** `docs/sharing.md`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/pull/490
Related
Open #490 Breadcrumbs and kinds of page in structured data in the timeline