Skip to content

Commit

Permalink
fix: fix sitemap and robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsang4 committed Nov 24, 2023
1 parent 041b2e0 commit c956396
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
User-agent: Googlebot
Disallow: /nogooglebot/

User-agent: *
Allow: /
Allow: /

Sitemap: https://jtsang.me/sitemap-index.xml
1 change: 1 addition & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const socialImageURL = new URL(
<meta name="title" content={title} />
<meta name="description" content={description} />
<meta name="author" content={author} />
<link rel="sitemap" href="/sitemap-index.xml" />

<!-- RSS -->
<link
Expand Down

0 comments on commit c956396

Please sign in to comment.