Update +page.svelte

This commit is contained in:
BOTAlex 2024-06-11 16:34:44 +02:00
parent 5c6d608d56
commit d5fb1c36a1
1 changed files with 10 additions and 1 deletions

View File

@ -35,9 +35,18 @@
}
});
function getFormattedDate(): string {
const date = new Date();
const day = String(date.getDate()).padStart(2, '0');
const month = String(date.getMonth() + 1).padStart(2, '0');
const year = date.getFullYear();
return `${day}-${month}-${year}`;
}
</script>
<title>Zhentao Wei's Epos CV</title>
<title>Zhentao Wei's CV {getFormattedDate()}</title>
<meta content="Zhentao Wei's Epos CV" property="og:title" />
<meta content="This CV is made completely with html + css + js" property="og:description" />
<meta content={preveiwImage} property="og:image" />