diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2012-10-22 14:37:41 +0900 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2012-10-22 14:39:23 +0900 |
commit | 95d7eefe1f29f440d216c9a7ebd0560f2de4a9f6 (patch) | |
tree | a15df540b3905ec007b45e5b5d4c947f899d0645 /tests/Hakyll | |
parent | 8c3b74c36b1c7d47d91d097e3c5d612d440a2816 (diff) | |
download | hakyll-95d7eefe1f29f440d216c9a7ebd0560f2de4a9f6.tar.gz |
Allow date as field for renderDateField
Diffstat (limited to 'tests/Hakyll')
-rw-r--r-- | tests/Hakyll/Web/Page/Metadata/Tests.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Hakyll/Web/Page/Metadata/Tests.hs b/tests/Hakyll/Web/Page/Metadata/Tests.hs index e3ceed9..badb9fb 100644 --- a/tests/Hakyll/Web/Page/Metadata/Tests.hs +++ b/tests/Hakyll/Web/Page/Metadata/Tests.hs @@ -54,6 +54,9 @@ tests = concat $ [ ("path", "/posts/2010-01-31-a-post.mkdwn") , ("published", "February 20, 2000 1:00 PM") ] + , (@=?) "October 22, 2012" $ getField "date" $ renderDateField + "date" "%B %e, %Y" "Date unknown" $ Page + (M.singleton "date" "2012-10-22 14:35:24") "" ] , fromAssertions "copyBodyToField" |