Skip to content

Commit

Permalink
feat: update robots files and site map generator
Browse files Browse the repository at this point in the history
  • Loading branch information
mckenziearts committed Oct 17, 2024
1 parent 853e1ed commit 01b9edc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 9 additions & 2 deletions app/Console/Commands/GenerateSitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ final class GenerateSitemap extends Command
* @var array|string[]
*/
private array $noIndexPaths = [
'',
'/forum/*',
'/forum/channels',
'/forum/channels/*',
'/user',
'/user/*',
'/dashboard/*',
'/rules',
'/terms',
'/privacy',
'/faq',
'/auth/github',
];

public function handle(): void
Expand Down
6 changes: 5 additions & 1 deletion public/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Disallow: /dashboard/*
# Forum
Disallow: /forum/channels
Disallow: /forum/channels/*
Disallow: /rules
Disallow: /terms
Disallow: /privacy
Disallow: /auth/github

# Sitemap
Sitemap : https://laravel.cm/sitemap.xml
Sitemap: https://laravel.cm/sitemap.xml

0 comments on commit 01b9edc

Please sign in to comment.