-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
666a8fa
commit 35ce44d
Showing
3 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# Allow all crawlers | ||
# * | ||
User-agent: * | ||
Allow: / | ||
Allow: / | ||
|
||
# Host | ||
Host: https://admiralinterior.com/ | ||
|
||
# Sitemaps | ||
Sitemap: https://admiralinterior.com/sitemap.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { MetadataRoute } from "next"; | ||
|
||
import { PortfolioProjects } from "@/constants/portfolio"; | ||
|
||
export default function sitemap(): MetadataRoute.Sitemap { | ||
const portfolio = PortfolioProjects.map((project) => ({ | ||
url: `https://admiralinterior.com/portfolio/${project.projectId}`, | ||
lastModified: new Date(), | ||
changeFrequency: "daily" as const, | ||
priority: 0.7, | ||
})); | ||
|
||
return [ | ||
{ | ||
url: "https://admiralinterior.com/", | ||
lastModified: new Date(), | ||
changeFrequency: "daily", | ||
priority: 1, | ||
}, | ||
{ | ||
url: "https://admiralinterior.com/services", | ||
lastModified: new Date(), | ||
changeFrequency: "daily", | ||
priority: 0.7, | ||
}, | ||
{ | ||
url: "https://admiralinterior.com/portfolio", | ||
lastModified: new Date(), | ||
changeFrequency: "daily", | ||
priority: 0.7, | ||
}, | ||
{ | ||
url: "https://admiralinterior.com/contacts", | ||
lastModified: new Date(), | ||
changeFrequency: "daily", | ||
priority: 0.7, | ||
}, | ||
...portfolio, | ||
]; | ||
} | ||
|
||
// yearly monthly weekly | ||
// priority 0.7 — default |