aboutsummaryrefslogtreecommitdiff
path: root/src/layouts/BlogPost.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/layouts/BlogPost.astro')
-rw-r--r--src/layouts/BlogPost.astro6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/layouts/BlogPost.astro b/src/layouts/BlogPost.astro
index a08dd15..a97dadf 100644
--- a/src/layouts/BlogPost.astro
+++ b/src/layouts/BlogPost.astro
@@ -1,12 +1,14 @@
---
import Layout from './Default.astro';
-const { title, description, date } = Astro.props;
+const { title, description, pubDate } = Astro.props;
+import { getCollection } from "astro:content";
+const postTags = (await getCollection('blog'));
---
<Layout title=`${title} - Andrew Lee` description={description}>
<header>
<h1 class="header-text">{title}</h1>
- <small>{date}</small>
+ <small>{pubDate}</small>
</header>
<div class="container">
<main>