diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2024-02-02 23:25:31 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2024-02-02 23:30:29 -0500 |
| commit | c7264e3ace8a6b1e22420702f00296a4bdadb6da (patch) | |
| tree | 1a157a968bea7e24fc708a22e933e8ea7ce01f1f /src/layouts/BlogPost.astro | |
| parent | 2c2bdccd645cafd26318c2f2659242f046b61daf (diff) | |
| download | personal-website-c7264e3ace8a6b1e22420702f00296a4bdadb6da.tar.gz personal-website-c7264e3ace8a6b1e22420702f00296a4bdadb6da.tar.bz2 personal-website-c7264e3ace8a6b1e22420702f00296a4bdadb6da.zip | |
Tags; More changes on blog
Diffstat (limited to 'src/layouts/BlogPost.astro')
| -rw-r--r-- | src/layouts/BlogPost.astro | 6 |
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> |
