mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-24 14:36:59 +02:00
feat: adds blog archive route (#5428)
* [feature] adds blog archive route * Update plugin-content-blog.md * fix TS issues + minor refactors * remove useless css * add translation apis * add missing translations Co-authored-by: slorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
e5d9ff18a8
commit
cb8718a1e3
28 changed files with 177 additions and 4 deletions
|
@ -70,10 +70,6 @@ declare module '@theme/BlogListPage' {
|
|||
import type {Content} from '@theme/BlogPostPage';
|
||||
import type {BlogSidebar} from '@theme/BlogSidebar';
|
||||
|
||||
export type Item = {
|
||||
readonly content: () => JSX.Element;
|
||||
};
|
||||
|
||||
export type Metadata = {
|
||||
readonly blogTitle: string;
|
||||
readonly blogDescription: string;
|
||||
|
@ -130,3 +126,17 @@ declare module '@theme/BlogTagsPostsPage' {
|
|||
const BlogTagsPostsPage: (props: Props) => JSX.Element;
|
||||
export default BlogTagsPostsPage;
|
||||
}
|
||||
|
||||
declare module '@theme/BlogArchivePage' {
|
||||
import type {Content} from '@theme/BlogPostPage';
|
||||
|
||||
export type ArchiveBlogPost = Content;
|
||||
|
||||
export type Props = {
|
||||
readonly archive: {
|
||||
blogPosts: readonly ArchiveBlogPost[];
|
||||
};
|
||||
};
|
||||
|
||||
export default function BlogArchivePage(props: Props): JSX.Element;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue