Skip to content

Commit

Permalink
Go away Google
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Feb 20, 2024
1 parent 62f7376 commit 2e16398
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
User-agent: *
Allow: /

Sitemap: https://astro-cactus.chriswilliams.dev/sitemap-index.xml
Disallow: /
3 changes: 3 additions & 0 deletions src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const socialImageURL = new URL(ogImage ? ogImage : "/social-card.png", Astro.url).href;
---

{/* Go away, Google */}
<meta content='noindex,nofollow' name='robots' />

<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0, shrink-to-fit=no" name="viewport" />
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
Expand Down

0 comments on commit 2e16398

Please sign in to comment.