From 46c393552a820f6cec91f4f3b9d4c062e46986ca Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 16 Oct 2017 22:23:50 +1100 Subject: [PATCH] Take out the Google Analytics stuff, since I'm not using it and I'm probably not gonna use it --- config/settings.yml | 1 - src/Settings.hs | 6 +----- templates/default-layout-wrapper.hamlet | 11 ----------- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/config/settings.yml b/config/settings.yml index 4098a07..95739d2 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -35,5 +35,4 @@ title: 00dani.me app-name: lebd username: dani repository: https://gitlab.com/00dani/lebd -#analytics: UA-YOURCODE fb-app-id: "_env:FB_APP_ID:142105433189339" diff --git a/src/Settings.hs b/src/Settings.hs index 6fa2626..9824ba3 100644 --- a/src/Settings.hs +++ b/src/Settings.hs @@ -58,11 +58,8 @@ data AppSettings = AppSettings , appSkipCombining :: Bool -- ^ Perform no stylesheet/script combining - -- Example app-specific configuration values. - , appAnalytics :: Maybe Text - -- ^ Google Analytics code , appFacebookId :: Maybe Int - -- ^ Facebook app ID, also used for analytics. + -- ^ Facebook app ID. , siteTitle :: Text -- ^ Site-wide title. @@ -97,7 +94,6 @@ instance FromJSON AppSettings where appMutableStatic <- o .:? "mutable-static" .!= defaultDev appSkipCombining <- o .:? "skip-combining" .!= defaultDev - appAnalytics <- o .:? "analytics" appFacebookId <- o .:? "fb-app-id" siteTitle <- o .: "title" siteUsername <- o .: "username" diff --git a/templates/default-layout-wrapper.hamlet b/templates/default-layout-wrapper.hamlet index fcdf97e..3ca8666 100644 --- a/templates/default-layout-wrapper.hamlet +++ b/templates/default-layout-wrapper.hamlet @@ -25,14 +25,3 @@ $doctype 5