diff options
Diffstat (limited to 'src/theme/BlogListPage.tsx')
-rw-r--r-- | src/theme/BlogListPage.tsx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/theme/BlogListPage.tsx b/src/theme/BlogListPage.tsx new file mode 100644 index 0000000..b8c7e01 --- /dev/null +++ b/src/theme/BlogListPage.tsx | |||
@@ -0,0 +1,18 @@ | |||
1 | /* | ||
2 | * SPDX-FileCopyrightText: 2024 Kristóf Marussy | ||
3 | * | ||
4 | * SPDX-License-Identifier: MIT | ||
5 | */ | ||
6 | |||
7 | import React from 'react'; | ||
8 | import type { Props } from '@theme/BlogListPage'; | ||
9 | import BlogListPage from '@theme-original/BlogListPage'; | ||
10 | |||
11 | import Landing from '@site/src/components/Landing'; | ||
12 | |||
13 | export default function BlogListPageWrapper(props: Props) { | ||
14 | if (props.metadata.permalink === '/') { | ||
15 | return <Landing {...props} />; | ||
16 | } | ||
17 | return <BlogListPage {...props} />; | ||
18 | } | ||