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

@@ -5,7 +5,7 @@ import type { iconPaths } from './IconPaths';
const textLinks: { label: string; href: string }[] = [
{ label: 'Home', href: '/' },
{ label: 'Work', href: '/work/' },
{ label: 'Projects', href: '/projects/' },
{ label: 'About', href: '/about/' },
];

View File

@@ -2,13 +2,13 @@
import type { CollectionEntry } from 'astro:content';
interface Props {
project: CollectionEntry<'work'>;
project: CollectionEntry<'projects'>;
}
const { data, slug } = Astro.props.project;
---
<a class="card" href={`/work/${slug}`}>
<a class="card" href={`/projects/${slug}`}>
<span class="title">{data.title}</span>
<img src={data.img} alt={data.img_alt || ''} loading="lazy" decoding="async" />
</a>