diff --git a/src/theme/BlogPostItem/Container/index.js b/src/theme/BlogPostItem/Container/index.js index b1efa04c..8ac12846 100644 --- a/src/theme/BlogPostItem/Container/index.js +++ b/src/theme/BlogPostItem/Container/index.js @@ -100,9 +100,6 @@ export default function BlogPostItemContainer({ children, className }) {
-

- {new Date(metadata.date).toLocaleDateString()} |{' '} -

{frontMatter.docs && (
-
- Read more - +
+
+ Read more + +
+ + {(() => { + const months = { + '01': 'Jan', '02': 'Feb', '03': 'Mar', '04': 'Apr', + '05': 'May', '06': 'Jun', '07': 'Jul', '08': 'Aug', + '09': 'Sep', '10': 'Oct', '11': 'Nov', '12': 'Dec' + }; + const [year, month, day] = metadata.date.split('-'); + return `${months[month]} ${parseInt(day)}, ${year}`; + })()} +
) : (