1
0
mirror of synced 2025-12-23 21:07:12 -05:00

Add sidebarLink frontmatter property for custom sidebar links (#56238)

This commit is contained in:
Kevin Heis
2025-07-23 14:00:15 -07:00
committed by GitHub
parent d6ae404dfc
commit 492685b76a
17 changed files with 231 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
// when updating to typescript,
// update links in content/contributing as well
import parse from './read-frontmatter'
import parse from '@/frame/lib/read-frontmatter'
import { allVersions } from '@/versions/lib/all-versions'
import { allTools } from '@/tools/lib/all-tools'
import { getDeepDataByLanguage } from '@/data-directory/lib/get-data'
@@ -291,6 +291,20 @@ export const schema = {
type: 'string',
},
// END category landing tags
// Custom sidebar link for category pages
sidebarLink: {
type: 'object',
required: ['text', 'href'],
properties: {
text: {
type: 'string',
translatable: true,
},
href: {
type: 'string',
},
},
},
// Spotlight configuration for category landing pages
spotlight: {
type: 'array',