From feaf5c1d4e46f7f3765e2aed5d21f9326a7b6848 Mon Sep 17 00:00:00 2001 From: Lorenzo Iovino Date: Tue, 29 Sep 2026 17:17:05 +0200 Subject: [PATCH] fix(bio): compute age in Life at heading from birth date at build time --- src/content/bio/my-story.mdx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/content/bio/my-story.mdx b/src/content/bio/my-story.mdx index c02d517..5c3047c 100644 --- a/src/content/bio/my-story.mdx +++ b/src/content/bio/my-story.mdx @@ -18,6 +18,9 @@ import wine from '../../assets/photos/wine.jpg'; import modica from '../../assets/photos/modica.jpg'; import meAmanda from '../../assets/photos/me-amanda.jpg'; +export const now = new Date(); +export const age = now.getFullYear() - 1988 - (now.getMonth() < 11 ? 1 : 0); + ## Hello world! Hi! I’m Lorenzo Iovino. @@ -167,7 +170,7 @@ For me, living here is a reminder: success is not only about projects and code. Modica view from my house -## Life at 35 +## Life at {age} Today I’m a husband (to my wife Amanda) and a dad (to our little Leonardo).