-
Notifications
You must be signed in to change notification settings - Fork 3
feat: update SEO metadata, add sitemap and robots.txt #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| User-agent: * | ||
| Allow: / | ||
| Sitemap: https://aetherui.in/sitemap.xml |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import { MetadataRoute } from "next"; | ||
| import { NavigationLinks } from "@/data/navigation"; | ||
|
|
||
| const URL = "https://aetherui.in"; | ||
|
|
||
| export default function sitemap(): MetadataRoute.Sitemap { | ||
| const staticRoutes = [ | ||
| { | ||
| url: `${URL}/`, | ||
| lastModified: new Date(), | ||
| }, | ||
| { | ||
| url: `${URL}/community`, | ||
| lastModified: new Date(), | ||
| }, | ||
| { | ||
| url: `${URL}/showcase`, | ||
| lastModified: new Date(), | ||
| }, | ||
| ]; | ||
|
|
||
| const componentRoutes = NavigationLinks.flatMap((group) => | ||
| group.children.map((item) => ({ | ||
| url: `${URL}${item.href}`, | ||
| lastModified: new Date(), | ||
| })) | ||
| ); | ||
|
Comment on lines
+8
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reconsider using Setting Consider one of these approaches:
Example with static dates: const staticRoutes = [
{
url: `${URL}/`,
- lastModified: new Date(),
+ lastModified: new Date("2025-10-31"),
},
// ... similar for other static routes
];
|
||
|
|
||
| return [...staticRoutes, ...componentRoutes]; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.