Set title for EntriesR
This commit is contained in:
parent
c554715df7
commit
2fd0ff850b
1 changed files with 3 additions and 1 deletions
|
@ -13,7 +13,9 @@ import Widget.Feed ( hFeed )
|
|||
getEntriesR :: K.EntryKind -> Handler Html
|
||||
getEntriesR kind = do
|
||||
entries <- runDB $ selectList [EntryKind ==. kind] [Desc EntryPublished]
|
||||
defaultLayout $(widgetFile "entries")
|
||||
defaultLayout $ do
|
||||
setTitle . toHtml . K.pluralise $ kind
|
||||
$(widgetFile "entries")
|
||||
|
||||
checkMatching :: K.EntryKind -> Slug -> Entry -> Bool
|
||||
checkMatching kind slug entry = (kind == entryKind entry) && (slug == entrySlug entry)
|
||||
|
|
Loading…
Reference in a new issue