Skip to content

Commit b615d9d

Browse files
committed
fix weird swizzle test typo
1 parent c48f338 commit b615d9d

File tree

1 file changed

+22
-31
lines changed
  • packages/docusaurus-theme-classic/src/theme/DocCategoryGeneratedIndexPage

1 file changed

+22
-31
lines changed

packages/docusaurus-theme-classic/src/theme/DocCategoryGeneratedIndexPage/index.tsx

+22-31
Original file line numberDiff line numberDiff line change
@@ -40,37 +40,28 @@ function DocCategoryGeneratedIndexPageContent({
4040
}: Props): JSX.Element {
4141
const category = useCurrentSidebarCategory();
4242
return (
43-
<>
44-
<PageMetadata
45-
title={categoryGeneratedIndex.title}
46-
description={categoryGeneratedIndex.description}
47-
keywords={categoryGeneratedIndex.keywords}
48-
// TODO `require` this?
49-
image={useBaseUrl(categoryGeneratedIndex.image)}
50-
/>
51-
<div className={styles.generatedIndexPage}>
52-
<DocVersionBanner />
53-
<DocBreadcrumbs />
54-
<DocVersionBadge />
55-
<header>
56-
<Heading as="h1" className={styles.title}>
57-
{categoryGeneratedIndex.title}
58-
</Heading>
59-
{categoryGeneratedIndex.description && (
60-
<p>{categoryGeneratedIndex.description}</p>
61-
)}
62-
</header>
63-
<article className="margin-top--lg">
64-
<DocCardList items={category.items} className={styles.list} />
65-
</article>
66-
<footer className="margin-top--lg">
67-
<DocPaginator
68-
previous={categoryGeneratedIndex.navigation.previous}
69-
next={categoryGeneratedIndex.navigation.next}
70-
/>
71-
</footer>
72-
</div>
73-
</>
43+
<div className={styles.generatedIndexPage}>
44+
<DocVersionBanner />
45+
<DocBreadcrumbs />
46+
<DocVersionBadge />
47+
<header>
48+
<Heading as="h1" className={styles.title}>
49+
{categoryGeneratedIndex.title}
50+
</Heading>
51+
{categoryGeneratedIndex.description && (
52+
<p>{categoryGeneratedIndex.description}</p>
53+
)}
54+
</header>
55+
<article className="margin-top--lg">
56+
<DocCardList items={category.items} className={styles.list} />
57+
</article>
58+
<footer className="margin-top--lg">
59+
<DocPaginator
60+
previous={categoryGeneratedIndex.navigation.previous}
61+
next={categoryGeneratedIndex.navigation.next}
62+
/>
63+
</footer>
64+
</div>
7465
);
7566
}
7667

0 commit comments

Comments
 (0)