Compare commits

..

No commits in common. "master" and "v1.6.2" have entirely different histories.

5 changed files with 7 additions and 13 deletions

2
package-lock.json generated
View file

@ -1,6 +1,6 @@
{
"name": "lebd",
"version": "1.6.4",
"version": "1.6.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View file

@ -1,6 +1,6 @@
{
"name": "lebd",
"version": "1.6.4",
"version": "1.6.2",
"description": "the codebase backing 00dani.me, an indieweb.org site",
"repository": {
"type": "git",

View file

@ -1,5 +1,5 @@
name: lebd
version: "1.6.4"
version: "1.6.2"
dependencies:

View file

@ -67,9 +67,6 @@ mkYesodData "App" $(parseRoutesFile "config/routes")
-- | A convenient synonym for creating forms.
type Form x = Html -> MForm (HandlerT App IO) (FormResult x, Widget)
sessionLifetime :: Int
sessionLifetime = 120 -- minutes
-- Please see the documentation for the Yesod typeclass. There are a number
-- of settings which can be configured by overriding methods here.
instance Yesod App where
@ -80,7 +77,7 @@ instance Yesod App where
-- Store session data on the client in encrypted cookies,
-- default session idle timeout is 120 minutes
makeSessionBackend _ = sslOnlySessions . strictSameSiteSessions $ Just <$> defaultClientSessionBackend
sessionLifetime
120 -- timeout in minutes
"config/client_session_key.aes"
-- Redirect static requests to a subdomain - this is recommended for best
@ -100,7 +97,7 @@ instance Yesod App where
-- b) Validates that incoming write requests include that token in either a header or POST parameter.
-- To add it, chain it together with the defaultMiddleware: yesodMiddleware = defaultYesodMiddleware . defaultCsrfMiddleware
-- For details, see the CSRF documentation in the Yesod.Core.Handler module of the yesod-core package.
yesodMiddleware = defaultYesodMiddleware . defaultCsrfMiddleware . sslOnlyMiddleware sessionLifetime
yesodMiddleware = defaultYesodMiddleware . defaultCsrfMiddleware
defaultLayout widget = do
master <- getYesod

View file

@ -1,5 +1,2 @@
div.h-feed
> ol.list-unstyled
margin-bottom: 0
> li:not(:last-child)
margin-bottom: 1em
div.h-feed > ol > li:not(:last-child)
margin-bottom: 1em