Add a site-wide title

This commit is contained in:
Danielle McLean 2017-10-02 22:04:20 +11:00
parent b0d997dabc
commit 3d4c21e18e
Signed by: 00dani
GPG key ID: 3844A6973C6058F1
3 changed files with 11 additions and 12 deletions

View file

@ -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