File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ export interface VitePressData<T = any> {
45
45
description : Ref < string >
46
46
lang : Ref < string >
47
47
dir : Ref < string >
48
- isDark : Ref < boolean >
49
48
localeIndex : Ref < string >
49
+ isDark : Ref < boolean >
50
50
}
51
51
52
52
// site data is a singleton
@@ -89,14 +89,12 @@ export function initData(route: Route): VitePressData {
89
89
frontmatter : computed ( ( ) => route . data . frontmatter ) ,
90
90
params : computed ( ( ) => route . data . params ) ,
91
91
lang : computed ( ( ) => site . value . lang ) ,
92
- dir : computed ( ( ) => route . data . frontmatter . dir || site . value . dir || 'ltr' ) ,
92
+ dir : computed ( ( ) => route . data . frontmatter . dir || site . value . dir ) ,
93
93
localeIndex : computed ( ( ) => site . value . localeIndex || 'root' ) ,
94
- title : computed ( ( ) => {
95
- return createTitle ( site . value , route . data )
96
- } ) ,
97
- description : computed ( ( ) => {
98
- return route . data . description || site . value . description
99
- } ) ,
94
+ title : computed ( ( ) => createTitle ( site . value , route . data ) ) ,
95
+ description : computed (
96
+ ( ) => route . data . description || site . value . description
97
+ ) ,
100
98
isDark
101
99
}
102
100
}
You can’t perform that action at this time.
0 commit comments