diff --git a/README.md b/README.md index 5e8b4e2..7f67f91 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,13 @@ # My personal blog +## Build locally + +Run + +```bash +yarn dev +``` + +## Deployment status + [![Netlify Status](https://api.netlify.com/api/v1/badges/a5b9bdfc-40ec-44c0-a151-def1c6462f11/deploy-status)](https://app.netlify.com/sites/amazing-booth-a25b1b/deploys) \ No newline at end of file diff --git a/components/PostCard.jsx b/components/PostCard.jsx index f96401a..49d8ef0 100644 --- a/components/PostCard.jsx +++ b/components/PostCard.jsx @@ -4,7 +4,7 @@ import { IconCalendar } from "@components/Icons" import Link from "next/link" import React from "react" -export const PostCard = ({ slug, frontmatter, timeToRead }) => { +export const PostCard = ({ id, frontmatter, timeToRead }) => { const publishDate = parse(frontmatter.date, "yyyy-MM-dd", new Date()) let formattedPublishDate = format(publishDate, "MMM d, yyyy") if (isSameYear(new Date(), publishDate)) { @@ -12,35 +12,35 @@ export const PostCard = ({ slug, frontmatter, timeToRead }) => { } return ( -