Skip to content

Commit

Permalink
fix collection changes
Browse files Browse the repository at this point in the history
  • Loading branch information
theWhiteWulfy committed Jun 12, 2024
1 parent 4b5967d commit 7cfc48f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/ArrowCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const { entry } = Astro.props as {
{entry.data.title}
</div>
<div class="text-sm">
{entry.data.description}
{entry.data.excerpt}
</div>
</div>
<svg
Expand Down
3 changes: 2 additions & 1 deletion src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ const blog = defineCollection({
comments: z.boolean().optional(),
comments_locked: z.boolean().optional(),
featured: z.boolean().optional(),
draft: z.boolean().optional(),
}),
});

const projects = defineCollection({
type: "content",
schema: z.object({
title: z.string(),
description: z.string(),
excerpt: z.string(),
date: z.coerce.date(),
draft: z.boolean().optional(),
demoURL: z.string().optional(),
Expand Down
2 changes: 1 addition & 1 deletion src/pages/blog/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const post = Astro.props;
const { Content, headings } = await post.render();
---

<Layout title={post.data.title} description={post.data.description}>
<Layout title={post.data.title} description={post.data.excerpt}>
<Container>
<div class="animate">
<BackToPrevious href="/blog">Back to blog</BackToPrevious>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/projects/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const project = Astro.props;
const { Content, headings } = await project.render();
---

<Layout title={project.data.title} description={project.data.description}>
<Layout title={project.data.title} description={project.data.excerpt}>
<Container>
<div class="animate">
<BackToPrevious href="/projects">Back to projects</BackToPrevious>
Expand Down

0 comments on commit 7cfc48f

Please sign in to comment.