In the middle of evaluating mini-program tools, I remembered a different job I wanted to do: replace my old blog setup. I searched for “react ssg framework”. Later that afternoon my much more specific query was “pagefind free”. Between those searches I had opened Astro's migration guides, Docusaurus's SEO documentation and the source of the Jest website. I was trying to picture the whole journey of an old article, from its source file to a reader finding it again.
Who edits the post, and who builds the page?
A CMS answers an editorial question: where the article lives, how I revise it, and when a draft becomes public. A static site generator takes content and templates and produces pages to deploy. They can be used together. If Markdown in Git already gives me the editing and review process I want, the first migration can be quite small. If an editor needs a browser-based draft and approval workflow, choosing a generator alone leaves that requirement open.
I would start with an awkward old post: a historical date, a Chinese slug, a footnote, an image and a link to another post. Give it a new template and see what breaks. A pristine “Hello world” demonstrates the theme; that old post tests the migration.
| Candidate | What drew me to it | What I would try with the old post |
|---|---|---|
| Gatsby | A React-oriented page and data model; I opened its website architecture guide. | Map front matter and content into the post template, preserving the original public path. |
| Astro, optionally with Starlight | Content-first pages with individual interactive islands. Starlight supplies a documentation layout and site search. | Serve the article as HTML and hydrate only the widget that needs interaction. See whether a documentation sidebar fits a dated blog archive. |
| Docusaurus | Built-in blog and documentation conventions, with React available for interactive content. | Put the article in the blog, check its slug and archive date, and see how a related guide would live alongside it. |
I also looked at Hugo themes. That was a useful check on my starting assumption: an article with a picture and a footnote has little intrinsic need for React. React becomes relevant when the site needs a component I want to keep or an interaction worth shipping.1
How much JavaScript does an article need?
Astro's islands gave me a concrete way to ask this. Consider a technical post with a live calculator in the middle. The article body and headings can arrive as HTML. The calculator can opt into client-side hydration; choosing when to load it determines when it becomes interactive. A blog with no interactive widget on a page can make a different choice from a documentation playground. This also makes a migration incremental: port the prose first, then move one component and check its output with JavaScript both enabled and disabled.2
SEO brought me back to details the generator cannot infer for me. Does a request to the old URL still resolve? If the URL deliberately changes, is there a redirect? Does the canonical URL agree with the destination? Can another post still link to an old heading? In Docusaurus's showcase I opened the Jest site and its website source. A maintained site's content, navigation and configuration together were a more revealing example than a theme screenshot.3
Can full-text search live on the static host?
At 13:45 I opened Starlight's site-search guide; at 13:46 I searched for Pagefind's cost. Starlight uses Pagefind by default. Pagefind indexes the built HTML, then publishes static index assets the browser can query. This puts search in the build-and-deploy process. There is no separate always-on search service to operate for that arrangement, though the index still costs build time, storage and transfer.4
For a plain static output directory the standalone indexing step can be as small as:
npx pagefind --site dist
Here dist must already contain the generated HTML. Starlight's integration handles the indexing step for its own build. To check the result I would publish a preview, search for a distinctive phrase in the middle of the old post, then search for a Chinese term, open the result and follow its heading link. I would also search for a phrase present only in the navigation. Repeated results for that phrase would tell me to narrow the indexed region. Deploying the HTML and its corresponding index together keeps newly published and renamed articles discoverable.4
My April 13 research reached a comparison, a search mechanism and a set of migration checks. I haven't established a completed move to any of the three generators. The result I would look for is straightforward: an old external link still lands, a new reader can find the same article by its contents, and publishing the next post takes fewer manual steps.
For a smaller first release, which setup would get full-text search online quickest?
References
Footnotes
-
Gatsby contributors. (n.d.). Website architecture. Gatsby Docs. Content, data and page architecture. Docusaurus contributors. (n.d.). Blog. Blog configuration and post conventions. ↩
-
Astro contributors. (n.d.). Islands architecture and Migrate from Next.js. Astro Docs. Client islands, migration guide visited during the comparison. ↩
-
Docusaurus contributors. (n.d.). Search engine optimization. SEO guide. Jest contributors. (n.d.). Jest website. GitHub. Website source. ↩
-
Starlight contributors. (n.d.). Site search. Pagefind integration. Pagefind contributors. (n.d.). Getting started with Pagefind. Indexing a static website. ↩ ↩2