Delete redundant <div id="contents"> in pages listing articles
This commit is contained in:
parent
7e875efc57
commit
dcf8d3d010
1 changed files with 4 additions and 6 deletions
10
src/Dom.hs
10
src/Dom.hs
|
@ -38,12 +38,10 @@ instance Page ArticlesList where
|
|||
blogName <- Blog.get name
|
||||
makeCard (maybe blogName ((blogName ++ " - ") ++) $ tagged al) (pageTitle al)
|
||||
|
||||
content al@(ArticlesList {featured}) =
|
||||
div_ [id_ "contents"] (do
|
||||
h2_ . toHtml . pack $ pageTitle al
|
||||
p_ . a_ [href_ . pack $ otherUrl al] . toHtml . pack $ otherLink al
|
||||
div_ [class_ "articles"] (mapM_ previewArticle featured)
|
||||
)
|
||||
content al@(ArticlesList {featured}) = do
|
||||
h2_ . toHtml . pack $ pageTitle al
|
||||
p_ . a_ [href_ . pack $ otherUrl al] . toHtml . pack $ otherLink al
|
||||
div_ [class_ "articles"] (mapM_ previewArticle featured)
|
||||
|
||||
makeCard :: String -> String -> HtmlGenerator ()
|
||||
makeCard title description = do
|
||||
|
|
Loading…
Reference in a new issue