refactor: use a content collection for talks

This commit is contained in:
Oliver Davies 2023-04-09 10:17:52 +01:00
parent 85644e4f2d
commit 7b97ad3af2
42 changed files with 111 additions and 92 deletions

View file

@ -6,8 +6,7 @@ interface ItemProps {
title: string;
}
const { date, description, excerpt, title } = Astro.props.item.item
.frontmatter as ItemProps;
const { date, description, excerpt, title } = Astro.props.item.item.data as ItemProps;
const { slug } = Astro.props.item;
---