feat(sitemap): add custom sitemap configuration and XSLT file
This commit is contained in:
@ -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: ["*"],
|
||||
|
Reference in New Issue
Block a user