aboutsummaryrefslogtreecommitdiffstats
path: root/src/theme/BlogListPage.tsx
blob: b8c7e0170ce0f9525bf3e146909a3d352238815c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * SPDX-FileCopyrightText: 2024 Kristóf Marussy
 *
 * SPDX-License-Identifier: MIT
 */

import React from 'react';
import type { Props } from '@theme/BlogListPage';
import BlogListPage from '@theme-original/BlogListPage';

import Landing from '@site/src/components/Landing';

export default function BlogListPageWrapper(props: Props) {
  if (props.metadata.permalink === '/') {
    return <Landing {...props} />;
  }
  return <BlogListPage {...props} />;
}