Compress images
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user