File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ export default defineConfig({
11
11
routing : {
12
12
prefixDefaultLocale : false ,
13
13
} ,
14
- fallback : {
15
- "es" : "en" ,
16
- "fr" : "en" ,
17
- }
18
14
} ,
19
15
integrations : [
20
16
starlight ( {
Original file line number Diff line number Diff line change 1
- import { defineCollection } from 'astro:content' ;
2
- import { docsLoader } from '@astrojs/starlight/loaders' ;
3
- import { docsSchema } from '@astrojs/starlight/schema' ;
1
+ import { defineCollection , z } from 'astro:content' ;
2
+ import { docsLoader , i18nLoader } from '@astrojs/starlight/loaders' ;
3
+ import { docsSchema , i18nSchema } from '@astrojs/starlight/schema' ;
4
4
import { glob } from 'astro/loaders' ;
5
5
6
6
export const collections = {
7
7
docs : defineCollection ( { loader : docsLoader ( ) , schema : docsSchema ( ) } ) ,
8
+ i18n : defineCollection ( { loader : i18nLoader ( ) , schema : i18nSchema ( {
9
+ extend : z . object ( {
10
+ 'custom.label' : z . string ( ) . optional ( )
11
+ } )
12
+ } ) } ) ,
8
13
elements : defineCollection ( {
9
14
loader : glob ( {
10
15
pattern : "**/*.yaml" ,
Original file line number Diff line number Diff line change 1
1
---
2
2
import StarlightPage from ' @astrojs/starlight/components/StarlightPage.astro' ;
3
3
---
4
+
4
5
<StarlightPage frontmatter ={ {
5
6
template: ' splash' ,
6
- title: ' Page not found ( 404) ' ,
7
+ title: ' 404' ,
7
8
hero: {
8
- title: ' Page not found ' ,
9
- tagline: ' Check the URL or try using the search bar. '
9
+ title: ' 404 ' ,
10
+ tagline: Astro . locals . t ( ' 404.text ' )
10
11
}
11
12
}} />
You can’t perform that action at this time.
0 commit comments