mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-04 09:19:16 +02:00
feat(content-docs): allow SEO metadata for category index pages (#6239)
This commit is contained in:
parent
e1d1618039
commit
3cb99124de
8 changed files with 31 additions and 2 deletions
|
@ -14,6 +14,7 @@ import Seo from '@theme/Seo';
|
|||
import DocVersionBanner from '@theme/DocVersionBanner';
|
||||
import DocVersionBadge from '@theme/DocVersionBadge';
|
||||
import {MainHeading} from '@theme/Heading';
|
||||
import useBaseUrl from '@docusaurus/useBaseUrl';
|
||||
|
||||
import styles from './styles.module.css';
|
||||
|
||||
|
@ -26,6 +27,9 @@ export default function DocCategoryGeneratedIndexPage({
|
|||
<Seo
|
||||
title={categoryGeneratedIndex.title}
|
||||
description={categoryGeneratedIndex.description}
|
||||
keywords={categoryGeneratedIndex.keywords}
|
||||
// TODO `require` this?
|
||||
image={useBaseUrl(categoryGeneratedIndex.image)}
|
||||
/>
|
||||
<div className={styles.generatedIndexPage}>
|
||||
<DocVersionBanner />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue