@@ -16,14 +16,15 @@ import Hakyll.Core.Compiler
1616-- default
1717--
1818data FileType
19− = Html
19+ = Binary
20+ | Css
21+ | Html
2022 | LaTeX
2123 | LiterateHaskell FileType
2224 | Markdown
23− | Rst
25+ | OrgMode
2426 | PlainText
25− | Css
26− | Binary
27+ | Rst
2728 deriving (Eq, Ord, Show, Read)
2829
2930-- | Get the file type for a certain file. The type is determined by extension.
@@ -31,6 +32,7 @@ data FileType
3132fileType :: FilePath -> FileType
3233fileType = fileType' . takeExtension
3334 where
35+ fileType' ".css" = Css
3436 fileType' ".htm" = Html
3537 fileType' ".html" = Html
3638 fileType' ".lhs" = LiterateHaskell Markdown
@@ -41,12 +43,12 @@ fileType = fileType' . takeExtension
4143 fileType' ".mdwn" = Markdown
4244 fileType' ".mkd" = Markdown
4345 fileType' ".mkdwn" = Markdown
46+ fileType' ".org" = OrgMode
4447 fileType' ".page" = Markdown
4548 fileType' ".rst" = Rst
4649 fileType' ".tex" = LaTeX
4750 fileType' ".text" = PlainText
4851 fileType' ".txt" = PlainText
49− fileType' ".css" = Css
5052 fileType' _ = Binary -- Treat unknown files as binary
5153
5254-- | Get the file type for the current file