docs: fix duplicated description (#41063)

This commit is contained in:
MadCcc 2023-03-05 17:17:16 +08:00 committed by GitHub
parent 673d8a029b
commit 79ac80a0a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,7 +220,9 @@ const Content: React.FC<{ children: ReactNode }> = ({ children }) => {
</Space>
</Typography.Paragraph>
) : null}
{meta.frontmatter.description !== meta.texts[0]?.value && meta.frontmatter.description}
{pathname.startsWith('/components') &&
meta.frontmatter.description !== meta.texts[0]?.value &&
meta.frontmatter.description}
{children}
{meta.frontmatter.filename && (
<ContributorsList