diff options
| author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-31 13:40:15 +0100 |
|---|---|---|
| committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-31 13:40:15 +0100 |
| commit | fbd9ff95bdd9c9bd904d87f2b2f2d88470c68173 (patch) | |
| tree | 23e773989107f17fdd1a65aa2c388d9acb9ab85b /src/Text/Hakyll | |
| parent | 7afabf5c098efc2f0df482ab66d9091d7aa3bd23 (diff) | |
| download | hakyll-fbd9ff95bdd9c9bd904d87f2b2f2d88470c68173.tar.gz | |
A little more documentation.
Diffstat (limited to 'src/Text/Hakyll')
| -rw-r--r-- | src/Text/Hakyll/File.hs | 4 |
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" |
