mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-14 00:32:47 +02:00
fix(blog): authors count incorrectly rendered (#10431)
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
This commit is contained in:
parent
afd2374ca6
commit
aa65f39d8c
39 changed files with 60 additions and 4 deletions
|
@ -96,4 +96,5 @@ export {
|
|||
useBlogAuthorPageTitle,
|
||||
translateBlogAuthorsListPageTitle,
|
||||
BlogAuthorsListViewAllLabel,
|
||||
BlogAuthorNoPostsLabel,
|
||||
} from './translations/blogTranslations';
|
||||
|
|
|
@ -77,3 +77,13 @@ export function BlogAuthorsListViewAllLabel(): ReactNode {
|
|||
</Translate>
|
||||
);
|
||||
}
|
||||
|
||||
export function BlogAuthorNoPostsLabel(): ReactNode {
|
||||
return (
|
||||
<Translate
|
||||
id="theme.blog.author.noPosts"
|
||||
description="The text for authors with 0 blog post">
|
||||
This author has not written any posts yet.
|
||||
</Translate>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue