Skip to content

Commit

Permalink
docs: fix dateStyle to dateFormat (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
everettjf authored Jan 15, 2023
1 parent 2228b5c commit 6d3b1d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ blog({
{ title: "Twitter", url: "https://twitter.com/denobot" },
],
lang: "en",
dateStyle: "long", // localised format based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat
// localised format based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat
dateFormat: (date) => new Intl.DateTimeFormat('en-GB', { dateStyle: 'long' }).format(date),
middlewares: [
ga("UA-XXXXXXXX-X"),
redirects({
Expand Down

0 comments on commit 6d3b1d4

Please sign in to comment.