Skip to content

Commit

Permalink
Add sitemap to <head> and redirect popular 404s to sensible places (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
bates64 authored Nov 9, 2023
1 parent 63ed91d commit 1068ce9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions public/_redirects
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
/cheerpj /cheerpj3
/sitemap.xml /sitemap-index.xml
/cheerpj2/getting-started/Tutorial /cheerpj2/getting-started
/cheerpj2/getting-started/applet-runner.html https://leaningtech.com/cheerpj-applet-runner/
/blog/null /blog
/cheerpj2/getting-started/applet-runner https://leaningtech.com/cheerpj-applet-runner/
/cheerpj3/download /cheerpj3/getting-started
/cheerpj3/downloads /cheerpj3/getting-started
/cheerpj3/releases /cheerpj3/changelog
/cheerpx2 /cheerpx
/cheerpx3 /cheerpx
1 change: 1 addition & 0 deletions src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const faviconType = favicon.endsWith(".ico") ? "image/x-icon" : "image/svg+xml";
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="icon" type={faviconType} href={favicon} />
<meta name="generator" content={Astro.generator} />
<link rel="sitemap" href="/sitemap-index.xml" />

<!-- Canonical URL -->
<link rel="canonical" href={canonicalURL} />
Expand Down

0 comments on commit 1068ce9

Please sign in to comment.