1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-16 19:45:33 -04:00

fix dayjs defaults

This commit is contained in:
2022-06-12 11:58:58 -04:00
parent bde473041a
commit cef74d4e97
4 changed files with 19 additions and 26 deletions

View File

@@ -5,7 +5,7 @@ import matter from "gray-matter";
import { marked } from "marked";
import removeMarkdown from "remove-markdown";
import pMap from "p-map";
import { formatDateISO } from "./format-date";
import { formatDate } from "./format-date";
import { baseUrl } from "../config";
import { NOTES_DIR } from "../config/constants";
@@ -45,7 +45,7 @@ export const getNoteData = async (
}),
slug,
permalink: `${baseUrl}/notes/${slug}/`,
date: formatDateISO(data.date), // validate/normalize the date string provided from front matter
date: formatDate(data.date), // validate/normalize the date string provided from front matter
},
content,
};