Support setting an fb:app_id in settings.yml

This commit is contained in:
Danielle McLean 2017-10-14 17:22:07 +11:00
parent 2956550a6c
commit fa110ae820
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
3 changed files with 7 additions and 0 deletions

View file

@ -62,6 +62,9 @@ data AppSettings = AppSettings
-- Example app-specific configuration values.
, appAnalytics :: Maybe Text
-- ^ Google Analytics code
, appFacebookId :: Maybe Int
-- ^ Facebook app ID, also used for analytics.
, siteTitle :: Text
-- ^ Site-wide title.
, siteUsername :: Text
@ -96,6 +99,7 @@ instance FromJSON AppSettings where
appSkipCombining <- o .:? "skip-combining" .!= defaultDev
appAnalytics <- o .:? "analytics"
appFacebookId <- o .:? "fb-app-id"
siteTitle <- o .: "title"
siteUsername <- o .: "username"