Download this file
| 1 | {{/* A document, presented as one (Paul, 2026-10-30): a paper card with |
| 2 | its title, the source and date above it, and each passage rendered |
| 3 | by docrender.go — lists, property lists, tables, quotes and code as |
| 4 | what they are. Every passage keeps its #p{n} anchor, because every |
| 5 | citation in memoria links to one, and the one a link points at is |
| 6 | marked. The text is escaped before any structure is added. */}} |
| 7 | {{define "content"}} |
| 8 | <nav rst-breadcrumb rst-doc-nav><a href="/">← Search</a> · <a href="/documents">Documents</a></nav> |
| 9 | <p rst-doc-meta rst-muted>{{.Source}}{{if .Path}} · {{.Path}}{{end}} · updated <time>{{.Updated}}</time></p> |
| 10 | <article rst-paper> |
| 11 | <h1 rst-doc-title>{{.Title}}</h1> |
| 12 | {{range .Passages}} |
| 13 | {{if .Heading}}{{if eq .Depth 1}}<h2 rst-doc-heading>{{.Heading}}</h2>{{else}}<h3 rst-doc-heading>{{.Heading}}</h3>{{end}}{{end}} |
| 14 | <section id="p{{.Ordinal}}" rst-passage>{{.HTML}}</section> |
| 15 | {{end}} |
| 16 | </article> |
| 17 | {{end}} |
| 18 | |