Created
May 20, 2011 09:07
-
-
Save paul-r-ml/982599 to your computer and use it in GitHub Desktop.
hakyll groups
This file contains hidden or 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
group "processTags" $ match "published/*" $ compile $ readPageCompiler | |
create "tags" $ | |
( requireAll | |
( (inGroup $ Just "processTags") `mappend` "published/*" ) | |
(\_ ps -> readTags ps :: Tags String) ) | |
-- Add a tag list compiler for every tag | |
match "tags/*" $ route $ setExtension ".html" | |
metaCompile $ require_ "tags" | |
>>> arr tagsMap | |
>>> arr (map (\(t, p) -> (tagIdentifier t, | |
makeTagList t p) ) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment