{- | This module defines the 'page' function for rendering an individual blog post or list of blog posts. -} {-# LANGUAGE RecordWildCards #-} {-# OPTIONS_GHC -F -pgmFtrhsx #-} module Theme.Blog where import Clckwrks import Data.Maybe import Data.Text (Text, pack, unpack) import Theme.Template -- | create a list of of all the blog posts postsHTML :: XMLGenT (Clck ClckURL) XML postsHTML = do posts <- getPosts