Verified Commit c902c68e authored by cgm616's avatar cgm616

Update date formatting and article sorting

parent 8fc129ed
Pipeline #161652960 passed with stage
in 1 minute and 10 seconds
......@@ -82,7 +82,9 @@ Metalsmith(__dirname) // instantiate Metalsmith in the cwd
.use(drafts())
.use(ignore(['**/.*.*.swp', '**/.*.*.swo']))
.use(collections({
articles: 'articles/*.md'
articles: 'articles/*.md',
sortBy: 'date',
reverse: true
}))
.use(metallic())
.use(markdown())
......@@ -91,7 +93,7 @@ Metalsmith(__dirname) // instantiate Metalsmith in the cwd
dates: [
{
key: 'date',
format: 'MMMM Do YYYY'
format: 'MMMM DD, YYYY'
}
]
}))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment