Compress images

This commit is contained in:
2023-12-25 17:24:27 +00:00
parent cc29d23bc2
commit 04b0b2972d
460 changed files with 3183 additions and 2451 deletions

View File

@@ -4,10 +4,10 @@ import Hero from "../components/Hero.astro";
export interface Props {
title: string;
date: Date;
img: string;
img: {dir: string, name: string};
}
const { frontmatter } = Astro.props;
const { frontmatter, slug } = Astro.props;
---
<!DOCTYPE html>
@@ -55,8 +55,14 @@ const { frontmatter } = Astro.props;
</nav>
<Hero
date={frontmatter.date}
title={frontmatter.title}
image={frontmatter.image}
imageData={{
title: frontmatter.title,
src: {
dir: frontmatter.dir,
name: frontmatter.image,
fileType: frontmatter.fileType
}
}}
/>
<div class="container-lg">
<main>

View File

@@ -50,8 +50,13 @@ const {} = Astro.props;
</div>
</nav>
<Hero
title="Welcome to Nozzy's House"
image="year2022-1/bathroom1.jpg"
imageData={{
title: "Welcome to Nozzy's House",
src: {
dir: 'year2022-1',
name: 'bathroom1'
}
}}
bold
/>
<div class="container-lg">