diff --git a/README.md b/README.md index b1cd13d..8410bf8 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Peacock ships with 3 basic content types - **Articles**: Long form content. Think blog posts 📚. All articles are in the `/content/articles` folder. Any markdown document you add here will show on the `/articles` page. - **Notes**: Short form Spontaneous content 🖋. All notes are in the `/content/notes` folder. -- **Works**: Case studies and projects you want to show 🛠. All works are in the `/content/works` folder. There's a `selectedWork` field in the markdown meta. Setting it to `true` will display the case study/work on the `index.tsx` page. +- **Work**: Case studies and projects you want to show 🛠. All work is in the `/content/work` folder. There's a `selectedWork` field in the markdown meta. Setting it to `true` will display the case study/work on the `index.tsx` page. ## Deploy to Vercel diff --git a/app/[contentType]/[slug]/page.tsx b/app/[contentType]/[slug]/page.tsx index fd68813..1dd19bb 100644 --- a/app/[contentType]/[slug]/page.tsx +++ b/app/[contentType]/[slug]/page.tsx @@ -76,7 +76,7 @@ export default async function ContentPage({ params }: Params) { const content = await fetchContentData(slug, contentType); if (content.draft) notFound(); - if (contentType === 'works') return ; + if (contentType === 'work') return ; return ( diff --git a/app/page.tsx b/app/page.tsx index ee41db8..6b747ce 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -37,7 +37,7 @@ export const metadata: Metadata = { }; const Index = () => { - const content = getContentList('works').filter((work) => work.selectedWork); + const content = getContentList('work').filter((work) => work.selectedWork); return (
diff --git a/components/back-button.tsx b/components/back-button.tsx index b87267e..83f3f40 100644 --- a/components/back-button.tsx +++ b/components/back-button.tsx @@ -8,7 +8,7 @@ export default function BackButton() { return (