diff --git a/src/layouts/PostSingle.astro b/src/layouts/PostSingle.astro
index 8a9c12f..5df4ccf 100755
--- a/src/layouts/PostSingle.astro
+++ b/src/layouts/PostSingle.astro
@@ -35,6 +35,7 @@ const { title, description, author, categories, image, date, tags } = post.data;
width={1200}
alt={title}
class="w-full rounded"
+ format="webp"
/>
)
diff --git a/src/layouts/components/AuthorCard.astro b/src/layouts/components/AuthorCard.astro
index 7d16889..0a7ca21 100644
--- a/src/layouts/components/AuthorCard.astro
+++ b/src/layouts/components/AuthorCard.astro
@@ -18,6 +18,7 @@ const { title, image, social } = data.data;
alt={title}
width={120}
height={120}
+ format="webp"
/>
)
}
diff --git a/src/layouts/components/BlogCard.astro b/src/layouts/components/BlogCard.astro
index 979b309..5067ce2 100644
--- a/src/layouts/components/BlogCard.astro
+++ b/src/layouts/components/BlogCard.astro
@@ -1,7 +1,7 @@
---
-import { Image } from "@astrojs/image/components";
import config from "@/config/config.json";
import { humanize, plainify, slugify } from "@/lib/utils/textConverter";
+import { Image } from "@astrojs/image/components";
import { FaRegFolder, FaRegUserCircle } from "react-icons/fa/index.js";
const {
@@ -21,6 +21,7 @@ const { title, image, date, author, categories } = data.data;
alt={title}
width={445}
height={230}
+ format="webp"
/>
)
}
diff --git a/src/layouts/components/Logo.astro b/src/layouts/components/Logo.astro
index 1f47c6b..ab23f50 100644
--- a/src/layouts/components/Logo.astro
+++ b/src/layouts/components/Logo.astro
@@ -1,6 +1,6 @@
---
-import { Image } from "@astrojs/image/components";
import config from "@/config/config.json";
+import { Image } from "@astrojs/image/components";
const { src, srcDarkmode }: { src?: string; srcDarkmode?: string } =
Astro.props;
@@ -39,6 +39,7 @@ const { theme_switcher }: { theme_switcher: boolean } = config.settings;
height: logo_height.replace("px", "") + "px",
width: logo_width.replace("px", "") + "px",
}}
+ format="webp"
/>
{theme_switcher && (