Cherokee Myths sample Origami site with a table of contents and full-text search
January 16, 2024
I built a sample Cherokee Myths site to explore how easy it is to create a static site in Origami that includes a generated table of contents and full-text search. I’m happy with how the site turned out.
As described in the site source, the site’s overall structure is defined in a single concise Origami file that orchestrates the creation of the table of contents on the home page, the generation of search indexes, and the processing of the tree of markdown content into HTML.
The tree of stories is flattened by a template to create the table of contents, and that same tree is also fed to a great tool called Pagefind to generate search indexes to allow full-text search on the static site.
Using public domain content for this sample was way more interesting than lorem ipsum text, and the Cherokee myths have a distinctly different mood than Greek myths or Aesop’s fables. The tale of the The Race Between the Crane and the Hummingbird did not end the way I’d expected.
This sample also gave me a chance to place with two recent CSS additions: text-wrap: balance
so that long headings end up with lines roughly equal in length (instead of a long line followed by an orphaned word), and initial-letter
to add a drop cap at the start of the story text.
Update: I made a video tour of this site.