mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-14 08:42:31 +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
|
@ -30,8 +30,17 @@ export async function createCategoryGeneratedIndexRoutes({
|
|||
async function createCategoryGeneratedIndexRoute(
|
||||
categoryGeneratedIndex: CategoryGeneratedIndexMetadata,
|
||||
): Promise<RouteConfig> {
|
||||
const {sidebar, title, description, slug, permalink, previous, next} =
|
||||
categoryGeneratedIndex;
|
||||
const {
|
||||
sidebar,
|
||||
title,
|
||||
description,
|
||||
slug,
|
||||
permalink,
|
||||
previous,
|
||||
next,
|
||||
image,
|
||||
keywords,
|
||||
} = categoryGeneratedIndex;
|
||||
|
||||
const propFileName = slugs.slug(
|
||||
`${version.versionPath}-${categoryGeneratedIndex.sidebar}-category-${categoryGeneratedIndex.title}`,
|
||||
|
@ -42,6 +51,8 @@ export async function createCategoryGeneratedIndexRoutes({
|
|||
description,
|
||||
slug,
|
||||
permalink,
|
||||
image,
|
||||
keywords,
|
||||
navigation: {
|
||||
previous,
|
||||
next,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue