Add a site-wide title
This commit is contained in:
parent
b0d997dabc
commit
3d4c21e18e
3 changed files with 11 additions and 12 deletions
|
@ -62,6 +62,8 @@ data AppSettings = AppSettings
|
|||
-- Example app-specific configuration values.
|
||||
, appAnalytics :: Maybe Text
|
||||
-- ^ Google Analytics code
|
||||
, appTitle :: Maybe Text
|
||||
-- ^ Site-wide title.
|
||||
|
||||
, appAuthDummyLogin :: Bool
|
||||
-- ^ Indicate if auth dummy login should be enabled.
|
||||
|
@ -91,6 +93,7 @@ instance FromJSON AppSettings where
|
|||
appSkipCombining <- o .:? "skip-combining" .!= defaultDev
|
||||
|
||||
appAnalytics <- o .:? "analytics"
|
||||
appTitle <- o .:? "title"
|
||||
|
||||
-- This code enables MySQL's strict mode, without which MySQL will truncate data.
|
||||
-- See https://github.com/yesodweb/persistent/wiki/Database-Configuration#strict-mode for details
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue