Skip to content

Commit

Permalink
Add custom 404 page text
Browse files Browse the repository at this point in the history
  • Loading branch information
VisualEhrmanntraut committed Aug 17, 2024
1 parent 44a0b60 commit 000aaa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/content/config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { defineCollection } from "astro:content";
import { docsSchema } from "@astrojs/starlight/schema";
import { docsSchema, i18nSchema } from "@astrojs/starlight/schema";
import { blogSchema } from "starlight-blog/schema";

export const collections = {
docs: defineCollection({
schema: docsSchema({ extend: (context) => blogSchema(context) }),
}),
i18n: defineCollection({ type: "data", schema: i18nSchema() }),
};
3 changes: 3 additions & 0 deletions src/content/i18n/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"404.text": "<strong>Houston, we have a problem.</strong><br>That URL doesn't exist, check the URL or try using the search bar."
}

0 comments on commit 000aaa2

Please sign in to comment.