;; Extension — SEO-complete HTML page (lang + meta description). (st-bootstrap-classes!) (content/bootstrap!) (content-bootstrap-text!) (define d (doc-with-title (doc-append (doc-append (doc-empty "post") (mk-heading "h" 1 "Hi")) (mk-text "p" "Hello world")) "My Title")) (content-test "page-full" (content/page-full d) "
Hello world
") ;; description escaped (content-test "page-full escapes description" (content/page-full (doc-with-title (doc-append (doc-empty "x") (mk-text "p" "a < b & c")) "T")) "a < b & c
") ;; title falls back to id, empty description for empty doc (content-test "page-full empty" (content/page-full (doc-empty "fallback")) "Bye now
")