Skip to content

Commit

Permalink
Update robot & sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
salimi-my committed Feb 5, 2024
1 parent fdc9c25 commit 22037de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/robots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: '*',
allow: '/',
allow: ['/', '/auth/', '/privacy-policy', '/terms-and-conditions'],
disallow: ['/admin/', '/api/', '/download-cv']
},
sitemap: `${baseUrl}/sitemap.xml`
Expand Down
12 changes: 12 additions & 0 deletions app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
lastModified: new Date(),
changeFrequency: 'never',
priority: 0.8
},
{
url: `${baseUrl}/privacy-policy`,
lastModified: new Date(),
changeFrequency: 'yearly',
priority: 0.8
},
{
url: `${baseUrl}/terms-and-conditions`,
lastModified: new Date(),
changeFrequency: 'yearly',
priority: 0.8
}
];

Expand Down

0 comments on commit 22037de

Please sign in to comment.