Index: snippets-html.rkt ================================================================== --- snippets-html.rkt +++ snippets-html.rkt @@ -22,10 +22,11 @@ ;; ------------------------------------------------------------------------- ;; Provides functions for displaying content in HTML templates. (require pollen/core pollen/template + pollen/decode racket/string txexpr openssl/sha1 "dust.rkt") @@ -54,11 +55,10 @@

The Local Yarn

}) (define (html$-article-open title? title-html-flow published) - (define published (select-from-metas 'published (current-metas))) (cond [title? ◊string-append{

◊|title-html-flow|

@@ -75,11 +75,11 @@ (define (html$-article-close footertext) (cond [(non-empty-string? footertext) ◊string-append{

}] - [else ""])) + [else ""])) (define (html$-page-body-close) ◊string-append{ }) @@ -103,12 +103,12 @@ (cond [(non-empty-string? disposition-mark) `(span [[class "disposition-mark"]] ,disposition-mark)] [else ""])) (define body-elems (cond - [(equal? 'p first-tag) - (cons (txexpr 'p first-attrs (cons disposition first-elems)) (cdr elems))] + [(block-txexpr? (car elems)) + (cons (txexpr first-tag first-attrs (cons disposition first-elems)) (cdr elems))] [else (cons disposition elems)])) (string-append* (map ->html body-elems))) (define (html$-note-listing-full pagenode note-id title-html-flow date contents [author default-authorname] [author-url ""])