diff --git a/.gitignore b/.gitignore index 52e5845..e5b5f12 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ node_modules/ dist/ .next/ .DS_Store -.cache/ \ No newline at end of file +.cache/ +*.bun diff --git a/README.md b/README.md index b08a286..1737bec 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ [![Netlify Status](https://api.netlify.com/api/v1/badges/8128893c-9426-4869-9858-731f3abc96c3/deploy-status)](https://app.netlify.com/sites/lambdapaul/deploys) -This is a rather simple [Next.js](https://nextjs.com) website that mainly involves generating content out of a bunch of markdown files contained in `notes/` and `posts/` which contain rough, unorganized yet useful information and thought-out articles respectively. \ No newline at end of file +A [Next.js](https://nextjs.com) website that mainly involves generating content out of a bunch of markdown files contained in `notes/` and `posts/` which contain rough, unorganized yet useful information and thought-out articles respectively. It's still a work in progress as I have no clear direction I want to take this site toward. However, it is something that I will always keep in check; as I use this as a hub for whatever I work on, especially if it involves a lot of reading. \ No newline at end of file diff --git a/components/recent-posts.tsx b/components/recent-posts.tsx index 1e5ab6f..df192cd 100644 --- a/components/recent-posts.tsx +++ b/components/recent-posts.tsx @@ -4,6 +4,8 @@ import { PostMeta } from "../util/slug"; import style from '../styles/recent-posts.module.css'; function RecentPosts({ postsMeta }: { postsMeta: PostMeta[] }) { + if (!postsMeta.length) + return <>>; return (