aboutsummaryrefslogtreecommitdiff
path: root/src/layouts
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2024-02-02 23:25:31 -0500
committerAndrew Lee <alee14498@protonmail.com>2024-02-02 23:30:29 -0500
commitc7264e3ace8a6b1e22420702f00296a4bdadb6da (patch)
tree1a157a968bea7e24fc708a22e933e8ea7ce01f1f /src/layouts
parent2c2bdccd645cafd26318c2f2659242f046b61daf (diff)
downloadpersonal-website-c7264e3ace8a6b1e22420702f00296a4bdadb6da.tar.gz
personal-website-c7264e3ace8a6b1e22420702f00296a4bdadb6da.tar.bz2
personal-website-c7264e3ace8a6b1e22420702f00296a4bdadb6da.zip
Tags; More changes on blog
Diffstat (limited to 'src/layouts')
-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>