summaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorGravatar Roman Walters <pointout@users.noreply.github.com> 2021-09-20 22:56:25 +0200
committerGravatar GitHub <noreply@github.com> 2021-09-20 13:56:25 -0700
commitb3f34bfd0e6ef4339e59adfc6083019cfc1eb98b (patch)
tree21796587a8b14bce83e18046c73c58ea919bbb52 /docs/src
parent4484b38d2b3e5107f71e76624c9644ca1045a23b (diff)
downloadastro-b3f34bfd0e6ef4339e59adfc6083019cfc1eb98b.tar.gz
astro-b3f34bfd0e6ef4339e59adfc6083019cfc1eb98b.tar.zst
astro-b3f34bfd0e6ef4339e59adfc6083019cfc1eb98b.zip
Update astro-pages.md: Create custom 404 error page (#1392)
* Update astro-pages.md * Update astro-pages.md Explained the speciallity of 404.astro * Update astro-pages.md
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/pages/core-concepts/astro-pages.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/src/pages/core-concepts/astro-pages.md b/docs/src/pages/core-concepts/astro-pages.md
index de61239c8..1657be290 100644
--- a/docs/src/pages/core-concepts/astro-pages.md
+++ b/docs/src/pages/core-concepts/astro-pages.md
@@ -58,3 +58,8 @@ console.log(data);
<!-- Output the result to the page -->
<div>{JSON.stringify(data)}</div>
```
+
+## Custom 404 Error Page
+
+For a custom 404 error page create a `404.astro` file in `/src/pages`. That builds to a `404.html` page. Most [deploy services](/guides/deploy) will find and use it.
+This is special and different to the default behavior building `page.astro` (or `page/index.astro`) to `page/index.html`.