-
$if (isEntryMarkdown e)
^{renderEntryMarkdown btext}
^{renderEntryMarkdown $ mtext} $else ^{preEscapedToHtml $ btext}
^{preEscapedToHtml $ mtext}
#{cHead lang}- #{renderComments comments lang}
^{renderCommentBox lang entryId}
|]
where
woText = flip T.append author $ T.pack $ (formatTime defaultTimeLocale (eTimeFormat lang) edate)
renderComments :: [Comment] -> BlogLang -> Html
renderComments [] lang = [shamlet|
- #{noComments lang}|] renderComments comments lang = [shamlet| $forall comment <- comments
-
#{append (cauthor comment) ": "}
^{preEscapedToHtml $ ctext comment}
#{timeString $ cdate comment} |] where timeString = formatTime defaultTimeLocale (cTimeFormat lang) captcha :: Html captcha = [shamlet|