Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
zachary822 committed Dec 1, 2023
1 parent 3e63a38 commit 6063b3f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,12 @@ main = do
(pageOffset page)
)
)
if null docs
then blazeHtml $ do
H.div "No Results Found"
else blazeHtml $ do
renderPosts docs
blazeHtml $ do
if null docs
then do
H.div "No Results Found"
else do
renderPosts docs

get "/posts/feed" $ do
posts :: [Post] <-
Expand Down

0 comments on commit 6063b3f

Please sign in to comment.