Skip to content

Commit

Permalink
Upload updated robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenPG committed Oct 19, 2024
1 parent 1e6bfd6 commit 2a4bb8f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions astro/src/pages/robots.txt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ Disallow: /nogooglebot/
User-agent: *
Allow: /
Allow: /posts
Allow: /posts/*
Sitemap: ${new URL("sitemap-index.xml", SITE.website).href}
Sitemap: ${new URL("sitemap-0.xml", SITE.website).href}
`.trim();


export const GET: APIRoute = () =>
new Response(robots, {
headers: { "Content-Type": "text/plain" },
Expand Down
5 changes: 4 additions & 1 deletion robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ Disallow: /nogooglebot/

User-agent: *
Allow: /
Allow: /posts
Allow: /posts/*

Sitemap: https://stevenpg.com/sitemap-index.xml
Sitemap: https://stevenpg.com/sitemap-index.xml
Sitemap: https://stevenpg.com/sitemap-0.xml

0 comments on commit 2a4bb8f

Please sign in to comment.