summaryrefslogtreecommitdiff
path: root/examples/portfolio/src/components/PortfolioPreview.astro
diff options
context:
space:
mode:
authorGravatar Chris Swithinbank <swithinbank@gmail.com> 2024-12-03 11:00:43 +0100
committerGravatar GitHub <noreply@github.com> 2024-12-03 11:00:43 +0100
commit3a144b1a69679730bb1d721aae2a28008b8a9064 (patch)
tree3f385ce8140726e47b9a6b9862655748139456e4 /examples/portfolio/src/components/PortfolioPreview.astro
parent1dc8f5eb7c515c89aadc85cfa0a300d4f65e8671 (diff)
downloadastro-3a144b1a69679730bb1d721aae2a28008b8a9064.tar.gz
astro-3a144b1a69679730bb1d721aae2a28008b8a9064.tar.zst
astro-3a144b1a69679730bb1d721aae2a28008b8a9064.zip
Update examples for v5 (#12588)
* Revert "chore: downgrade examples to not use beta releases (#12557)" This reverts commit 6031962ab5f56457de986eb82bd24807e926ba1b. * Update blog template for new content collections * Update portfolio template for new content collections * Update starlog template for new content collections
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>