Make the user who's displayed on the homepage a configurable setting, so it's easier to use lebd if your name isn't Dani
This commit is contained in:
parent
66cb093387
commit
f3b12ded69
3 changed files with 8 additions and 2 deletions
|
@ -14,8 +14,9 @@ import Widget.Feed ( hFeed )
|
|||
|
||||
getHomeR :: Handler Html
|
||||
getHomeR = do
|
||||
userE@(Entity userId user) <- runDB . getBy404 $ UniqueUser "dani"
|
||||
title <- asks $ siteTitle . appSettings
|
||||
settings <- asks appSettings
|
||||
userE@(Entity userId user) <- runDB . getBy404 . UniqueUser . siteUsername $ settings
|
||||
let title = siteTitle settings
|
||||
entries <- runDB $ selectList [EntryAuthorId ==. userId] [Desc EntryPublished]
|
||||
defaultLayout $ do
|
||||
atomLink FeedR title
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue