fix(bio): compute age in Life at heading from birth date at build time
All checks were successful
Deploy to OVH VPS / deploy (push) Successful in 1m3s

This commit is contained in:
Lorenzo Iovino 2026-09-29 17:17:05 +02:00
parent 2251a3e938
commit feaf5c1d4e

View file

@ -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.
<em class="text-sm block mt-2">Modica view from my house</em>
</div>
## Life at 35
## Life at {age}
Today I’m a husband (to my wife Amanda) and a dad (to our little Leonardo).