summaryrefslogtreecommitdiff
path: root/src/Text/Hakyll/Page.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Hakyll/Page.hs')
-rw-r--r--src/Text/Hakyll/Page.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Hakyll/Page.hs b/src/Text/Hakyll/Page.hs
index 7b40ada..6ead0ae 100644
--- a/src/Text/Hakyll/Page.hs
+++ b/src/Text/Hakyll/Page.hs
@@ -136,7 +136,8 @@ readPageFromFile path = do
where
url = toURL path
--- | Read a page. Might fetch it from the cache if available.
+-- | Read a page. Might fetch it from the cache if available. Otherwise, it will
+-- read it from the file given and store it in the cache.
readPage :: FilePath -> Hakyll Page
readPage path = do
cacheResult <- getFromCache path