From 87540cfebc68c053034086cf8bc76b47a598ee2c Mon Sep 17 00:00:00 2001 From: Chris W Date: Wed, 3 Jan 2024 16:17:36 -0700 Subject: [PATCH] fix home page post links --- src/pages/index.astro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index d160fee..af72b66 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -4,6 +4,7 @@ import Header from '../components/Header.astro'; import Footer from '../components/Footer.astro'; import { SITE_TITLE, SITE_DESCRIPTION } from '../consts'; import { getCollection } from 'astro:content'; +import slugify from "@utils/sligify"; const featuredProjects = (await getCollection('projects', (item) => item.data.featured)); const latestPosts = (await getCollection('posts')) @@ -56,7 +57,7 @@ const latestPosts = (await getCollection('posts'))
{ latestPosts.map((post) => ( - {post.data.title} + {post.data.title} )) }