A landing page and pages for each audience, behind LANDING_PAGE (#379)
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
With LANDING_PAGE=1 (or true, yes), / is a landing page ("Any span of time, on one exact line") with cards for six audiences, and /for/ is a page for educators, researchers, investigators, operations, writers and developers: a promise, example timelines, a video, what they can do and what they can count on. The timeline browser moves to /explore, which also works with the switch off (canonical to / then), keeping every list's query and in-place search. Off by default, / is unchanged. - Copy is Markdown with front matter in platform/content/landing/, overridable file by file from LANDING_CONTENT_DIR. - LANDING_EXAMPLES[_ ] names owner/slug timelines, shown as the browser's cards; private, labelled, missing and suspended owners' are skipped; none set falls back to the browser's first public timelines, featured first. - LANDING_VIDEO[_ ] takes a YouTube address: a link until clicked, then the youtube-nocookie player; the CSP allows that frame only on those pages and only when a video is set. A bad address stops the server starting. - Header Explore link, account menu "Your timelines", sign-in returning to /explore; "for" is a reserved username. - Sitemap lists /explore, /for and each audience page when on; each page has title, description, canonical, Open Graph and WebPage JSON-LD; light and dark, phone width, no JavaScript needed. - Settings documented in openchronology.env, .env.example, compose.yml, docs/administration.md and docs/docker.md; unit tests and a live browser test. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/9535e4cbc3a3aeb4cd8ee1d552a5aa5a7372ccb0
Related
Open A landing page and pages for each audience, behind LANDING_PAGE (#379) in the timeline