diff options
Diffstat (limited to 'src/Hakyll/Web')
-rw-r--r-- | src/Hakyll/Web/Template/Context.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Hakyll/Web/Template/Context.hs b/src/Hakyll/Web/Template/Context.hs index fd9add9..eeec728 100644 --- a/src/Hakyll/Web/Template/Context.hs +++ b/src/Hakyll/Web/Template/Context.hs @@ -195,7 +195,9 @@ modificationTimeFieldWith :: TimeLocale -- ^ Time output locale -> String -- ^ Format -> Context a -- ^ Resulting context modificationTimeFieldWith locale key fmt = field key $ \i -> do - mtime <- compilerUnsafeIO $ resourceModificationTime $ itemIdentifier i + provider <- compilerProvider <$> compilerAsk + mtime <- compilerUnsafeIO $ + resourceModificationTime provider $ itemIdentifier i return $ formatTime locale fmt mtime |