From 338bcf12e0b7bbd6e587ec992e62860642856e80 Mon Sep 17 00:00:00 2001 From: "houston[bot]" Date: Sat, 22 Jul 2023 12:57:20 -0700 Subject: Initial commit from Astro --- src/layouts/BlogPost.astro | 51 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/layouts/BlogPost.astro (limited to 'src/layouts') diff --git a/src/layouts/BlogPost.astro b/src/layouts/BlogPost.astro new file mode 100644 index 0000000..a9526d0 --- /dev/null +++ b/src/layouts/BlogPost.astro @@ -0,0 +1,51 @@ +--- +import type { CollectionEntry } from 'astro:content'; +import BaseHead from '../components/BaseHead.astro'; +import Header from '../components/Header.astro'; +import Footer from '../components/Footer.astro'; +import FormattedDate from '../components/FormattedDate.astro'; + +type Props = CollectionEntry<'blog'>['data']; + +const { title, description, pubDate, updatedDate, heroImage } = Astro.props; +--- + + + + + + + + +
+
+
+ {heroImage && } +

{title}

+ + { + updatedDate && ( +
+ Last updated on +
+ ) + } +
+ +
+
+