diff --git a/astro.config.mjs b/astro.config.mjs index 22c9775..4809149 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -6,7 +6,7 @@ import { defineConfig } from "astro/config"; // https://astro.build/config export default defineConfig({ integrations: [tailwind(), sitemap(), mdx()], - site: "https://www.lorenzoiovino.com", + site: "https://lorenzoiovino.com", compressHTML: true, build: { inlineStylesheets: "auto", diff --git a/src/content/bio/my-story.mdx b/src/content/bio/my-story.mdx index 1f79cd5..36396c2 100644 --- a/src/content/bio/my-story.mdx +++ b/src/content/bio/my-story.mdx @@ -131,7 +131,7 @@ At some point I decided to go back to Sicily. Not as a “I give up” move. More like: I want a different balance.
- Working remote watching the sea + Working remote watching the sea Working remote watching the sea
@@ -142,7 +142,7 @@ I work remote, and Sicily is perfect for that. Life is slower. Sometimes it’s Time here feels different. You can actually breathe. You can have “nothing special” days, and those days can still feel good.
- My wineyard + My wineyard My wineyard
@@ -162,7 +162,7 @@ And yes: food. Sicily is crazy for food. It’s not even a “food culture”, i For me, living here is a reminder: success is not only about projects and code. It’s also about how you live your days.
- Modica view from my house + Modica view from my house Modica view from my house
@@ -173,6 +173,6 @@ Today I’m a husband (to my wife Amanda) and a dad (to our little Leonardo). Life changed a lot, in a good way. I still love technology, I still build things, but family gives a different meaning to everything.
- Me and my wife Amanda + Me and my wife Amanda Me and my wife Amanda
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 919cb75..9d3c079 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -1,4 +1,7 @@ --- +import mePhoto from "../assets/photos/me.png"; +import "../styles/global.css"; + interface Props { title: string; description?: string; @@ -14,18 +17,19 @@ const { title, description = "Lorenzo Iovino - Software Engineer based in Sicily. Passionate about technology, remote work, and life balance.", canonicalUrl, - image = "/photos/me.png", + image, type = "website", publishedTime, modifiedTime, tags = [], } = Astro.props; -const siteUrl = "https://www.lorenzoiovino.com"; -const fullImageUrl = image.startsWith("http") ? image : `${siteUrl}${image}`; +const siteUrl = "https://lorenzoiovino.com"; +const defaultImage = mePhoto.src; +const fullImageUrl = image + ? (image.startsWith("http") ? image : `${siteUrl}${image}`) + : `${siteUrl}${defaultImage}`; const fullCanonicalUrl = canonicalUrl || `${siteUrl}${Astro.url.pathname}`; - -import "../styles/global.css"; --- @@ -145,7 +149,7 @@ import "../styles/global.css"; name: "Lorenzo Iovino", logo: { "@type": "ImageObject", - url: `${siteUrl}/photos/me.png`, + url: `${siteUrl}${defaultImage}`, }, }, ...(publishedTime && { datePublished: publishedTime.toISOString() }), diff --git a/src/pages/blog.astro b/src/pages/blog.astro index 5f5cf77..09d6fa3 100644 --- a/src/pages/blog.astro +++ b/src/pages/blog.astro @@ -121,7 +121,7 @@ const initialPosts: BlogPost[] = sortedPosts.slice(0, 6); class="w-full h-full object-cover hover:scale-105 transition-transform duration-300" width={1200} height={630} - quality={80} + quality={70} format="webp" />
diff --git a/src/pages/blog/[slug].astro b/src/pages/blog/[slug].astro index fff3e6a..00cbc95 100644 --- a/src/pages/blog/[slug].astro +++ b/src/pages/blog/[slug].astro @@ -6,6 +6,7 @@ import BaseLayout from "../../layouts/BaseLayout.astro"; import Navbar from "../../components/Navbar.astro"; import Footer from "../../components/Footer.astro"; import "../../styles/prose.css"; +import mePhoto from "../../assets/photos/me.png"; type BlogPost = CollectionEntry<"blog">; @@ -21,7 +22,7 @@ const { entry }: { entry: BlogPost } = Astro.props; const { Content } = await entry.render(); // Extract image src for meta tags (Open Graph expects a URL string) -const heroImageSrc = entry.data.heroImage?.src || "/photos/me.png"; +const heroImageSrc = entry.data.heroImage?.src || mePhoto.src; ---
@@ -94,12 +95,14 @@ const heroImageSrc = entry.data.heroImage?.src || "/photos/me.png";
- Lorenzo Iovino

Lorenzo Iovino

diff --git a/src/pages/blog/tag/[tag].astro b/src/pages/blog/tag/[tag].astro index 2f6fec3..8c25905 100644 --- a/src/pages/blog/tag/[tag].astro +++ b/src/pages/blog/tag/[tag].astro @@ -98,7 +98,7 @@ const displayTag: string = tag.charAt(0).toUpperCase() + tag.slice(1); class="w-full h-full object-cover hover:scale-105 transition-transform duration-300" width={1200} height={630} - quality={80} + quality={70} format="webp" />