diff --git a/config/settings.yml b/config/settings.yml index c4a9ab6..63b842c 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -41,4 +41,3 @@ database: repo-dir: repos ssh-port: 5022 ssh-key-file: config/ssh-host-key -copyright: Insert your statement against copyright here diff --git a/src/Vervis/Settings.hs b/src/Vervis/Settings.hs index 5b0b19f..ca14a90 100644 --- a/src/Vervis/Settings.hs +++ b/src/Vervis/Settings.hs @@ -75,12 +75,10 @@ data AppSettings = AppSettings , appSshPort :: Int -- | Path to the server's SSH private key file , appSshKeyFile :: FilePath - -- | Copyright text to appear in the footer of the page - , appCopyright :: Text } instance FromJSON AppSettings where - parseJSON = withObject "AppSettings" $ \o -> do + parseJSON = withObject "AppSettings" $ \ o -> do let defaultDev = #if DEVELOPMENT True @@ -103,7 +101,6 @@ instance FromJSON AppSettings where appRepoDir <- o .: "repo-dir" appSshPort <- o .: "ssh-port" appSshKeyFile <- o .: "ssh-key-file" - appCopyright <- o .: "copyright" return AppSettings {..} diff --git a/templates/default-layout-wrapper.hamlet b/templates/default-layout-wrapper.hamlet index b2b9d25..8c31cb7 100644 --- a/templates/default-layout-wrapper.hamlet +++ b/templates/default-layout-wrapper.hamlet @@ -40,5 +40,5 @@ $# document.documentElement.className = document.documentElement.className.re <header> <div id="main" role="main"> ^{pageBody pc} - <footer> - #{appCopyright $ appSettings master} +$# <footer> +$# #{appCopyright $ appSettings master}