Skip to content

Feature-Request: Server-rendered Markdown on page routes (SEO-friendly, not full SPA SSR) #1292

Description

@jochumdev

Related to #67, scoped to page rendering only. Right now GET /some/page returns the SPA shell <div id="root"></div>, and content loads via a JS fetch to the API afterward. That works well for browsers, but leaves search crawlers, link previews, LLM agents, and curl looking at an empty page.

Proposal: have the existing page route render the page's Markdown to HTML server-side and include it directly in the response body, alongside the current shell. The SPA boots and takes over exactly as it does today.
Along with it:

  • sitemap.xml generated from tree.json
  • per-page <title> / in the initial HTML
  • robots.txt check for page paths
  • canonical URL + OpenGraph tags

I'm happy to implement that.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions