blob: d0f03f73fc5b0397cb10c9c70652d53854929e1b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/*
* SPDX-FileCopyrightText: 2024 Kristóf Marussy
*
* SPDX-License-Identifier: MIT
*/
import React from 'react';
import type { Props } from '@theme/PaginatorNavLink';
import PaginatorNavLink from '@theme-original/PaginatorNavLink';
export default function PaginatorNavLinkWrapper(props: Props) {
const modifiedProps = { ...props };
if (modifiedProps.permalink === '/') {
modifiedProps.permalink = '/#blog';
}
return <PaginatorNavLink {...modifiedProps} />;
}
|