summaryrefslogtreecommitdiff
path: root/examples/portfolio/src/components/PortfolioPreview.astro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/portfolio/src/components/PortfolioPreview.astro')
-rw-r--r--examples/portfolio/src/components/PortfolioPreview.astro4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/portfolio/src/components/PortfolioPreview.astro b/examples/portfolio/src/components/PortfolioPreview.astro
index dbeac403e..f26bae0e2 100644
--- a/examples/portfolio/src/components/PortfolioPreview.astro
+++ b/examples/portfolio/src/components/PortfolioPreview.astro
@@ -5,10 +5,10 @@ interface Props {
project: CollectionEntry<'work'>;
}
-const { data, slug } = Astro.props.project;
+const { data, id } = Astro.props.project;
---
-<a class="card" href={`/work/${slug}`}>
+<a class="card" href={`/work/${id}`}>
<span class="title">{data.title}</span>
<img src={data.img} alt={data.img_alt || ''} loading="lazy" decoding="async" />
</a>