summaryrefslogtreecommitdiff
path: root/src/Text/Hakyll
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-31 13:40:15 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-31 13:40:15 +0100
commitfbd9ff95bdd9c9bd904d87f2b2f2d88470c68173 (patch)
tree23e773989107f17fdd1a65aa2c388d9acb9ab85b /src/Text/Hakyll
parent7afabf5c098efc2f0df482ab66d9091d7aa3bd23 (diff)
downloadhakyll-fbd9ff95bdd9c9bd904d87f2b2f2d88470c68173.tar.gz
A little more documentation.
Diffstat (limited to 'src/Text/Hakyll')
-rw-r--r--src/Text/Hakyll/File.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Hakyll/File.hs b/src/Text/Hakyll/File.hs
index a7ed7b3..649f2a3 100644
--- a/src/Text/Hakyll/File.hs
+++ b/src/Text/Hakyll/File.hs
@@ -45,7 +45,9 @@ toCache :: FilePath -> Hakyll FilePath
toCache path = do dir <- askHakyll cacheDirectory
return $ dir </> removeLeadingSeparator path
--- | Get the url for a given page.
+-- | Get the url for a given page. For most extensions, this would be the path
+-- itself. It's only for rendered extensions (@.markdown@, @.rst@, @.lhs@ this
+-- function returns a path with a @.html@ extension instead.
toUrl :: FilePath -> FilePath
toUrl path = if takeExtension path `elem` [ ".markdown"
, ".md"