astro-accelerator 5.9.5 → 5.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -1
  2. package/src/pages/404.md +32 -0
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.9.5",
2
+ "version": "5.9.7",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -58,6 +58,7 @@
58
58
  "sample/*",
59
59
  "sample/**/*",
60
60
  "src/config.ts",
61
+ "src/pages/404.md",
61
62
  "src/pages/index.md",
62
63
  "src/pages/search.md",
63
64
  "src/pages/articles/*.astro",
@@ -0,0 +1,32 @@
1
+ ---
2
+ warning: This file is overwritten by Astro Accelerator
3
+ layout: src/layouts/Search.astro
4
+ title: Not Found
5
+ navSearch: false
6
+ navSitemap: false
7
+ navMenu: false
8
+ pubDate: 2025-06-30
9
+ keywords: not found
10
+ description: Astro Accelerator is an opinionated Astro site.
11
+ robots: noindex, follow
12
+ bannerImage:
13
+ src: /img/surface-accessories.png
14
+ alt: Dummy image
15
+ ---
16
+
17
+ We couldn't find that, but you might find it with a search.
18
+
19
+ <script>
20
+ {
21
+ const currentUrl = window.location.href;
22
+ const lowerCaseUrl = currentUrl.toLowerCase();
23
+ if (currentUrl != lowerCaseUrl) {
24
+ location.replace(lowerCaseUrl);
25
+ }
26
+
27
+ const nonAmpUrl = currentUrl.replace(/\/amp\/?(?:\?.*)?(?:#.*)?$/, '');
28
+ if (currentUrl != nonAmpUrl) {
29
+ location.replace(nonAmpUrl);
30
+ }
31
+ }
32
+ </script>