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({
1111 routing : {
1212 prefixDefaultLocale : false ,
1313 } ,
14- fallback : {
15- "es" : "en" ,
16- "fr" : "en" ,
17- }
1814 } ,
1915 integrations : [
2016 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' ;
44import { glob } from 'astro/loaders' ;
55
66export const collections = {
77 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+ } ) } ) ,
813 elements : defineCollection ( {
914 loader : glob ( {
1015 pattern : "**/*.yaml" ,
Original file line number Diff line number Diff line change 11---
22import StarlightPage from ' @astrojs/starlight/components/StarlightPage.astro' ;
33---
4+
45<StarlightPage frontmatter ={ {
56 template: ' splash' ,
6- title: ' Page not found ( 404) ' ,
7+ title: ' 404' ,
78 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 ' )
1011 }
1112}} />
You can’t perform that action at this time.
0 commit comments