minor cleanup
This commit is contained in:
parent
4893b40cc9
commit
b346c399f5
2 changed files with 12 additions and 4 deletions
9
app/HTML.hs
Normal file
9
app/HTML.hs
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
|
|
||||||
|
module HTML (compileToHTML) where
|
||||||
|
|
||||||
|
import Data.Text
|
||||||
|
import IR
|
||||||
|
|
||||||
|
compileToHTML :: Document -> Text
|
||||||
|
compileToHTML = const ""
|
||||||
|
|
@ -148,8 +148,7 @@ rss =
|
||||||
-- Shake.putInfo $ "Built " <> target
|
-- Shake.putInfo $ "Built " <> target
|
||||||
|
|
||||||
readPost :: FilePath -> Action Post
|
readPost :: FilePath -> Action Post
|
||||||
readPost postPath = do
|
readPost postPath = case FP.takeExtension postPath of
|
||||||
case FP.takeExtension postPath of
|
|
||||||
".md" -> readMarkdownPost postPath
|
".md" -> readMarkdownPost postPath
|
||||||
_ -> error $ "unknown file extension for file" <> postPath
|
_ -> error $ "unknown file extension for file" <> postPath
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue