Files
jcoffey-dev 85bbf5f828 Forms, the endpoint, and search from it
Forms are YAML in forms/, rendered by {{ form }} with a small script and stylesheet the build publishes. cl-cms endpoint serves /_cl/ for any number of sites by host: it checks Origin, a per-IP rate limit, text-only bodies, a trap field, a signed 3 s to 24 h token and optional Turnstile, then the declared fields (types, lengths, options, no line breaks in single-line fields), and delivers by SMTP over TLS, optionally appending to a 0600 JSONL file. It also answers search from a collection's search.json, so a site can search in the browser or from the endpoint. cl-cms serve can pass /_cl/ to an endpoint, and -reload=false leaves out the live-reload script for headless browsers.
2026-10-10 14:10:17 -07:00

9 lines
191 B
HTML

{{ define "main" }}
<article class="wrap prose page">
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ with .Params.form }}{{ form . }}{{ end }}
</article>
{{ template "sections" . }}
{{ end }}