+ Stevan Corre (pihkaal) - Full-Stack Developer
+
+ Developer from Brittany, France. I love programming and taking photos. This
+ portfolio is an interactive 3D Nintendo DS.
+
+ Projects and experiences
+
+ Contact
+
+
diff --git a/app/utils/birthday.ts b/app/utils/birthday.ts
new file mode 100644
index 0000000..16c625e
--- /dev/null
+++ b/app/utils/birthday.ts
@@ -0,0 +1,10 @@
+export const BIRTHDAY_DAY = 25;
+export const BIRTHDAY_MONTH = 4;
+export const BIRTHDAY_YEAR = 2002;
+
+export const getAge = (now = new Date()) => {
+ const hadBirthdayThisYear =
+ now.getMonth() > BIRTHDAY_MONTH - 1 ||
+ (now.getMonth() === BIRTHDAY_MONTH - 1 && now.getDate() >= BIRTHDAY_DAY);
+ return now.getFullYear() - BIRTHDAY_YEAR - (hadBirthdayThisYear ? 0 : 1);
+};
diff --git a/nuxt.config.ts b/nuxt.config.ts
index c660d42..4b695a5 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -1,6 +1,7 @@
+import { getAge } from "./app/utils/birthday";
+
const TITLE = "Pihkaal - Developer";
-const DESCRIPTION =
- "23yo developer from Brittany. I love programming and taking photos.";
+const DESCRIPTION = `${getAge()}yo developer from Brittany. I love programming and taking photos.`;
const URL = "https://pihkaal.me";
const IMAGE = `${URL}/thumbnail.png`;
@@ -27,7 +28,7 @@ export default defineNuxtConfig({
],
meta: [
{ name: "description", content: DESCRIPTION },
- { name: "author", content: "pihkaal" },
+ { name: "author", content: "Stevan Corre" },
{ name: "robots", content: "index, follow" },
{ name: "theme-color", content: "#181818" },
{ property: "og:type", content: "website" },
@@ -56,7 +57,8 @@ export default defineNuxtConfig({
innerHTML: JSON.stringify({
"@context": "https://schema.org",
"@type": "Person",
- name: "pihkaal",
+ name: "Stevan Corre",
+ alternateName: "pihkaal",
url: URL,
email: "hello@pihkaal.me",
jobTitle: "Full-Stack Developer",
@@ -76,7 +78,7 @@ export default defineNuxtConfig({
name: TITLE,
url: URL,
description: DESCRIPTION,
- author: { "@type": "Person", name: "pihkaal", url: URL },
+ author: { "@type": "Person", name: "Stevan Corre", url: URL },
}),
},
],
diff --git a/public/robots.txt b/public/robots.txt
index 0ad279c..8817af9 100644
--- a/public/robots.txt
+++ b/public/robots.txt
@@ -1,2 +1,4 @@
User-Agent: *
Disallow:
+
+Sitemap: https://pihkaal.me/sitemap.xml
diff --git a/public/sitemap.xml b/public/sitemap.xml
new file mode 100644
index 0000000..49a8b61
--- /dev/null
+++ b/public/sitemap.xml
@@ -0,0 +1,9 @@
+
+