Last active
September 22, 2017 21:35
-
-
Save maurer/85126fc27d65068c03cfab43e3875c82 to your computer and use it in GitHub Desktop.
Generating an index.html from latest blog post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create ["index.html"] $ do | |
route idRoute | |
compile $ do | |
misnamedItem <- head <$> (recentFirst =<< loadAll "posts/*") | |
>>= relativizeUrls | |
return $ misnamedItem {itemIdentifier = "index.html"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment