feat(sitemap): add custom sitemap configuration and XSLT file

This commit is contained in:
2025-05-16 15:11:44 +02:00
parent 14209935f6
commit fd9545cc10
2 changed files with 109 additions and 1 deletions

View File

@ -10,7 +10,38 @@ export default defineConfig({
site: "https://jleibl.net",
integrations: [
react(),
sitemap(),
sitemap({
changefreq: "weekly",
priority: 1.0,
lastmod: new Date("2025-05-16"),
customPages: [
"https://jleibl.net/#about",
"https://jleibl.net/#work",
"https://jleibl.net/#hobby",
"https://jleibl.net/#contact",
],
i18n: {
defaultLocale: "en",
locales: {
en: "en-US",
},
},
serialize: (item) => {
if (item.url === "https://jleibl.net/") {
return {
...item,
img: [
{
url: "https://jleibl.net/profile-image-futu-style.jpg",
caption: "Jan-Marlon Leibl - Fullstack Developer",
},
],
};
}
return item;
},
xslURL: "/sitemap.xsl",
}),
icon({
include: {
ph: ["*"],