change work to projects
This commit is contained in:
@@ -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/' },
|
||||
];
|
||||
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user