mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Merge pull request #37 from TheRealOwenRees/seo
robots and sitemap added (#37)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { MetadataRoute } from "next";
|
||||
|
||||
export default function robots(): MetadataRoute.Robots {
|
||||
return {
|
||||
rules: {
|
||||
userAgent: "*",
|
||||
allow: "/",
|
||||
disallow: "/api/",
|
||||
},
|
||||
sitemap: "https://echecsfrance/sitemap.xml",
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
import { MetadataRoute } from "next";
|
||||
|
||||
export default function sitemap(): MetadataRoute.Sitemap {
|
||||
return [
|
||||
{
|
||||
url: "https://echecsfrance.com",
|
||||
lastModified: new Date(),
|
||||
},
|
||||
{
|
||||
url: "https://echecsfrance.com/tournois",
|
||||
lastModified: new Date(),
|
||||
},
|
||||
{
|
||||
url: "https://echecsfrance.com/qui-sommes-nous",
|
||||
lastModified: new Date(),
|
||||
},
|
||||
{
|
||||
url: "https://echecsfrance.com/contactez-nous",
|
||||
lastModified: new Date(),
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user