mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Prettify all files
This commit is contained in:
+22
-19
@@ -1,24 +1,27 @@
|
||||
import { MetadataRoute } from "next";
|
||||
|
||||
export default function sitemap(): MetadataRoute.Sitemap {
|
||||
return ['fr', 'en'].flatMap(locale => {
|
||||
const prefix = `https://echecsfrance.com/${locale === 'fr' ? '' : `${locale}/`}`
|
||||
return ["fr", "en"].flatMap((locale) => {
|
||||
const prefix = `https://echecsfrance.com/${
|
||||
locale === "fr" ? "" : `${locale}/`
|
||||
}`;
|
||||
return [
|
||||
{
|
||||
url: prefix,
|
||||
lastModified: new Date(),
|
||||
},
|
||||
{
|
||||
url: `${prefix}tournois`,
|
||||
lastModified: new Date(),
|
||||
},
|
||||
{
|
||||
url: `${prefix}qui-sommes-nous`,
|
||||
lastModified: new Date(),
|
||||
},
|
||||
{
|
||||
url: `${prefix}contactez-nous`,
|
||||
lastModified: new Date(),
|
||||
},
|
||||
]});
|
||||
{
|
||||
url: prefix,
|
||||
lastModified: new Date(),
|
||||
},
|
||||
{
|
||||
url: `${prefix}tournois`,
|
||||
lastModified: new Date(),
|
||||
},
|
||||
{
|
||||
url: `${prefix}qui-sommes-nous`,
|
||||
lastModified: new Date(),
|
||||
},
|
||||
{
|
||||
url: `${prefix}contactez-nous`,
|
||||
lastModified: new Date(),
|
||||
},
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user