Move posts to separate folder, update URLs to use slugs

This commit is contained in:
Cassidy Williams
2022-08-26 00:36:03 -05:00
parent 463ee505e8
commit 32425613cd
32 changed files with 53 additions and 59 deletions

View File

@@ -4,7 +4,7 @@ const { slug, title, tags, description, date } = Astro.props;
---
<li>
<a href={`/${slug}/`} class="title">{title}</a>
<a href={`/post/${slug}/`} class="title">{title}</a>
<time datetime={date}>
{new Date(date).toLocaleDateString('en-us', {
year: 'numeric',