From cdb7af9e6b9c99a47c3e1af3d0498bb81b1fee91 Mon Sep 17 00:00:00 2001 From: Lukas Prochazka Date: Wed, 8 Jan 2025 11:49:58 +0100 Subject: [PATCH] Fix indentation --- app/[contentType]/[slug]/page.tsx | 7 ++++--- utils/content.ts | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/[contentType]/[slug]/page.tsx b/app/[contentType]/[slug]/page.tsx index 533428d..fd68813 100644 --- a/app/[contentType]/[slug]/page.tsx +++ b/app/[contentType]/[slug]/page.tsx @@ -23,7 +23,6 @@ export async function generateMetadata({ params }: Params): Promise { (await params).slug, (await params).contentType, ); - return { title: `${title} | ${info.site.siteTitle}`, description: description ?? info.site.siteDescription, @@ -71,7 +70,7 @@ export default async function ContentPage({ params }: Params) { const { slug, contentType } = await params; if (!contentTypesMap.has(contentType)) { - return notFound(); + notFound(); } const content = await fetchContentData(slug, contentType); @@ -86,7 +85,9 @@ export default async function ContentPage({ params }: Params) {

{content.title}

- + {!!content.previewImage && ( { // return the slug of all the content IDs return filenames.map((filename) => { const filePath = path.join(baseDir, filename); - const fileContent = fs.readFileSync(filePath, 'utf-8'); + const fileContent = fs.readFileSync(filePath, 'utf-8'); const matterResult = matter(fileContent); return {