Sort recipe images
This commit is contained in:
parent
67d4303548
commit
c694baca81
|
@ -30,6 +30,7 @@ handleRecipeDir recipesDir outputDir htmlTemplate indexName recipeSubDirs name =
|
||||||
imageFilenames <-
|
imageFilenames <-
|
||||||
listDirectory dir
|
listDirectory dir
|
||||||
& filterDepGenM (hasExtension (inject ["jpg"]))
|
& filterDepGenM (hasExtension (inject ["jpg"]))
|
||||||
|
& onToken sort
|
||||||
htmlBodyImages <- forDepGenM imageFilenames $ \filename -> do
|
htmlBodyImages <- forDepGenM imageFilenames $ \filename -> do
|
||||||
path <- joinPaths dir filename
|
path <- joinPaths dir filename
|
||||||
path `copyTo` outputDir
|
path `copyTo` outputDir
|
||||||
|
|
Loading…
Reference in New Issue