Sort recipe images

This commit is contained in:
Niels G. W. Serup 2024-11-16 21:28:09 +01:00
parent 67d4303548
commit c694baca81
No known key found for this signature in database
GPG Key ID: 38EEEBCE67324F19
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ handleRecipeDir recipesDir outputDir htmlTemplate indexName recipeSubDirs name =
imageFilenames <-
listDirectory dir
& filterDepGenM (hasExtension (inject ["jpg"]))
& onToken sort
htmlBodyImages <- forDepGenM imageFilenames $ \filename -> do
path <- joinPaths dir filename
path `copyTo` outputDir