#428 Render a timeline page's header (title, cover, description) on the server
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#428
- issue
- state:closed
Opening a timeline's page, its title, cover image and description show up only after a short pause. **Cause.** The page's server HTML carries them only in the hidden summary (`TimelineSummary`, `sr-only`). The visible header is drawn by the editor in the `/editor/frame` iframe: it loads its scripts, fetches `/api/timelines/ /document`, renders the Markdown, then loads the image. **Search.** `robots.txt` disallows `/editor` and `/api/`, so crawlers only ever see the hidden summary. Visually hidden text tends to count for less than visible text. The cover is in `og:image` only, never an ` `, so it can't be indexed as the page's image. Timeline pages also have no structured data, and the page's largest visible content arrives late. **Proposal** - **Server-rendered header:** for readers (anyone who can't write the timeline), the page renders a visible header above the editor, with the cover as an ` ` with its alt text, the title as the page's ` `, the description's Markdown, and the facts and byline. - **The editor's own copy:** while the frame shows that same timeline, the editor hides its read-only copy of the image, title and description. The actions row (star, share, pull requests, platform actions) and the meta line stay. If the frame opens another timeline, its own heading returns. - **Writers:** keep the editor's editable heading as now. - **Structured data:** add JSON-LD for the timeline (`CreativeWork`: name, description, image, author, dates, URL). - **Tests:** the server HTML contains the visible header, the image and the JSON-LD; the frame hides its copy for readers and keeps it for writers. https://github.com/openchronology/timeline-app/issues/428
Related
- #429 A timeline's page arrives with its heading, and describes itself to search engines
- #448 A timeline's breadcrumb names its owner from the first frame
- A timeline's breadcrumb names its owner from the first frame, not "Local workspace"
- The platform test looks for the frame headed by its timeline (#428)
- A timeline's page arrives with its heading, and describes itself to search engines (#428)
Open #428 Render a timeline page's header (title, cover, description) on the server in the timeline