Skip to content

Commit 450e169

Browse files
committed
Fix theme export
1 parent 017f479 commit 450e169

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

rspress.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ export default defineConfig({
1313
route: {
1414
cleanUrls: true,
1515
},
16-
// ssg: {
17-
// strict: true,
18-
// },
1916
mediumZoom: true,
2017
builderPlugins: [pluginYaml()],
2118
globalStyles: path.join(__dirname, 'theme/index.css'),

theme/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { Layout as BasicLayout } from 'rspress/theme';
22
import { Content } from 'rspress/runtime';
33
import { HomeLayout } from './pages/index';
4-
const Layout = () => <BasicLayout ><Content /></BasicLayout>;
4+
const Layout = () => <BasicLayout><Content /></BasicLayout>;
55

66

7-
export default {
7+
export {
88
Layout,
99
HomeLayout,
1010
};

0 commit comments

Comments
 (0)