Remove the copyright setting from settings.yml and put it in the layout directly, since it needs to contain HTML (a link to the license)
This commit is contained in:
parent
c996018486
commit
0f8a553b51
3 changed files with 2 additions and 5 deletions
|
@ -31,5 +31,4 @@ database:
|
||||||
database: "_env:MYSQL_DATABASE:lebd"
|
database: "_env:MYSQL_DATABASE:lebd"
|
||||||
poolsize: "_env:MYSQL_POOLSIZE:10"
|
poolsize: "_env:MYSQL_POOLSIZE:10"
|
||||||
|
|
||||||
copyright: 'All content on this site is licensed under a <a rel="license" href="//creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.'
|
|
||||||
#analytics: UA-YOURCODE
|
#analytics: UA-YOURCODE
|
||||||
|
|
|
@ -59,8 +59,6 @@ data AppSettings = AppSettings
|
||||||
-- ^ Perform no stylesheet/script combining
|
-- ^ Perform no stylesheet/script combining
|
||||||
|
|
||||||
-- Example app-specific configuration values.
|
-- Example app-specific configuration values.
|
||||||
, appCopyright :: Text
|
|
||||||
-- ^ Copyright text to appear in the footer of the page
|
|
||||||
, appAnalytics :: Maybe Text
|
, appAnalytics :: Maybe Text
|
||||||
-- ^ Google Analytics code
|
-- ^ Google Analytics code
|
||||||
|
|
||||||
|
@ -91,7 +89,6 @@ instance FromJSON AppSettings where
|
||||||
appMutableStatic <- o .:? "mutable-static" .!= defaultDev
|
appMutableStatic <- o .:? "mutable-static" .!= defaultDev
|
||||||
appSkipCombining <- o .:? "skip-combining" .!= defaultDev
|
appSkipCombining <- o .:? "skip-combining" .!= defaultDev
|
||||||
|
|
||||||
appCopyright <- o .: "copyright"
|
|
||||||
appAnalytics <- o .:? "analytics"
|
appAnalytics <- o .:? "analytics"
|
||||||
|
|
||||||
-- This code enables MySQL's strict mode, without which MySQL will truncate data.
|
-- This code enables MySQL's strict mode, without which MySQL will truncate data.
|
||||||
|
|
|
@ -47,4 +47,5 @@ $else
|
||||||
<footer .footer>
|
<footer .footer>
|
||||||
<div .container>
|
<div .container>
|
||||||
<p .text-muted>
|
<p .text-muted>
|
||||||
#{appCopyright $ appSettings master}
|
All content on this site is licensed under a
|
||||||
|
<a rel="license" href="//creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
|
||||||
|
|
Loading…
Reference in a new issue