File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
22import { getCollection } from " astro:content" ;
33import DefaultPageLayout from " layouts/default.astro" ;
4- import { PortfolioFrontmatter } from " types/frontmatter" ;
4+ import { type PortfolioFrontmatter } from " types/frontmatter" ;
55import { Education } from " ~/components/app/home/sections/Education" ;
66import { Hero } from " ~/components/app/home/sections/Hero" ;
77import { TechnicalSkills } from " ~/components/app/home/sections/TechnicalSkills" ;
@@ -20,7 +20,7 @@ const portfolioItems = await getCollection("portfolio");
2020 <Education />
2121 <PortfolioShowcase
2222 items ={ portfolioItems .map (
23- (item ) => ({ ... item .data , slug: item .slug } as PortfolioFrontmatter )
23+ (item ) => ({ ... item .data , slug: item .id } as PortfolioFrontmatter )
2424 )}
2525 />
2626</DefaultPageLayout >
You can’t perform that action at this time.
0 commit comments