Initial docusaurus

This commit is contained in:
2024-10-01 01:01:59 +00:00
parent 100a3d4948
commit 338600605a
133 changed files with 19832 additions and 4188 deletions

View File

@ -0,0 +1,44 @@
import React from 'react';
import Translate, {translate} from '@docusaurus/Translate';
import PaginatorNavLink from '@theme/PaginatorNavLink';
import type {Props} from '@theme/BlogPostPaginator';
export default function BlogPostPaginator(props: Props): JSX.Element {
const {nextItem, prevItem} = props;
return (
<nav
className="pagination-nav docusaurus-mt-lg"
aria-label={translate({
id: 'theme.blog.post.paginator.navAriaLabel',
message: 'Blog post page navigation',
description: 'The ARIA label for the blog posts pagination',
})}>
{nextItem && (
<PaginatorNavLink
{...nextItem}
subLabel={
<Translate
id="theme.blog.post.paginator.olderPost"
description="The blog post button label to navigate to the older/next post">
Older post
</Translate>
}
/>
)}
{prevItem && (
<PaginatorNavLink
{...prevItem}
subLabel={
<Translate
id="theme.blog.post.paginator.newerPost"
description="The blog post button label to navigate to the newer/previous post">
Newer post
</Translate>
}
isNext
/>
)}
</nav>
);
}