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:
Gabriel Csapo 2021-09-02 08:35:13 -07:00 committed by GitHub
parent e5d9ff18a8
commit cb8718a1e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 177 additions and 4 deletions

View file

@ -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;
}