change work to projects

This commit is contained in:
2024-08-23 21:01:26 -05:00
parent b8efef1a00
commit f6c05b8a0c
10 changed files with 15 additions and 15 deletions

View File

@@ -13,7 +13,7 @@ import PortfolioPreview from '../components/PortfolioPreview.astro';
import ContactCTA from '../components/ContactCTA.astro';
import Skills from '../components/Skills.astro';
const projects = (await getCollection('work'))
const projects = (await getCollection('projects'))
.sort((a, b) => b.data.publishDate.valueOf() - a.data.publishDate.valueOf())
.slice(0, 4);
---
@@ -48,8 +48,8 @@ const projects = (await getCollection('work'))
<main class="wrapper stack gap-20 lg:gap-48">
<section class="section with-background with-cta">
<header class="section-header stack gap-2 lg:gap-4">
<h3>Selected Work</h3>
<p>Take a look below at some of my featured work from the past few years.</p>
<h3>Selected Projects</h3>
<p>Take a look below at some of my featured projects from the past few years.</p>
</header>
<div class="gallery">
@@ -65,7 +65,7 @@ const projects = (await getCollection('work'))
</div>
<div class="cta">
<CallToAction href="/work/">
<CallToAction href="/projects/">
View All
<Icon icon="arrow-right" size="1.2em" />
</CallToAction>