;; content-on-sx — SEO-complete HTML page. ;; ;; content/page-full extends content/page with a lang attribute and a ;; drawn from the document excerpt (plain text, ;; truncated). Composes the page, metadata and text layers. ;; ;; Requires (loaded by harness): page.sx (ct-html-escape, content/page-title), ;; text.sx (content/excerpt), render.sx (asHTML). (define CONTENT-EXCERPT-LEN 160) (define content/page-full (fn (doc) (str "" (ct-html-escape (content/page-title doc)) "" (asHTML doc) "")))