Skip to content

Commit b237ce7

Browse files
committed
feat: format date used as news category
1 parent 2e9ba53 commit b237ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ main = hakyll $ do
6868
news <- recentFirst =<< loadAll catId
6969
let ctx =
7070
listField "news" (newsWithCategoriesCtx categories) (pure news) <>
71-
constField "category" category <>
71+
dateField "category" "%B %e, %Y" <>
7272
defaultContext
7373

7474
makeItem ""

0 commit comments

Comments
 (0)