diff --git a/templates/studio-template-blog/src/layouts/BlogPost.astro b/templates/studio-template-blog/src/layouts/BlogPost.astro index a8e9260..a0a35dd 100644 --- a/templates/studio-template-blog/src/layouts/BlogPost.astro +++ b/templates/studio-template-blog/src/layouts/BlogPost.astro @@ -1,13 +1,18 @@ --- -import type { Blog } from "astro:db" -import BaseHead from "../components/BaseHead.astro" -import Footer from "../components/Footer.astro" -import FormattedDate from "../components/FormattedDate.astro" -import Header from "../components/Header.astro" +import BaseHead from '../components/BaseHead.astro'; +import Footer from '../components/Footer.astro'; +import FormattedDate from '../components/FormattedDate.astro'; +import Header from '../components/Header.astro'; -type Props = typeof Blog.$inferSelect +type Props = { + title: string; + description: string; + heroImage: string; + publishedAt: Date; + updatedAt?: Date | null; +}; -const { title, description, publishedAt, updatedAt, heroImage } = Astro.props +const { title, description, publishedAt, updatedAt, heroImage } = Astro.props; --- @@ -59,11 +64,7 @@ const { title, description, publishedAt, updatedAt, heroImage } = Astro.props
- { - heroImage && ( - - ) - } +
diff --git a/templates/studio-template-blog/src/pages/about.astro b/templates/studio-template-blog/src/pages/about.astro index 09122e4..c776b27 100644 --- a/templates/studio-template-blog/src/pages/about.astro +++ b/templates/studio-template-blog/src/pages/about.astro @@ -7,8 +7,6 @@ import Layout from '../layouts/BlogPost.astro'; description="Lorem ipsum dolor sit amet" publishedAt={new Date('August 08 2021')} heroImage="/blog-placeholder-about.jpg" - updatedAt={null} - heroImage={null} >

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut