Add 'url' field to categories.json (#50897)
This commit is contained in:
12
src/types.ts
12
src/types.ts
@@ -6,15 +6,18 @@ import type { Request } from 'express'
|
||||
// througout the codebase.
|
||||
export type ExtendedRequest = Request & {
|
||||
pagePath?: string
|
||||
context?: {
|
||||
currentCategory?: string
|
||||
error?: Error
|
||||
}
|
||||
context?: Context
|
||||
language?: string
|
||||
userLanguage?: string
|
||||
// Add more properties here as needed
|
||||
}
|
||||
|
||||
export type Context = {
|
||||
currentCategory?: string
|
||||
error?: Error
|
||||
siteTree?: SiteTree
|
||||
}
|
||||
|
||||
type Language = {
|
||||
name: string
|
||||
code: string
|
||||
@@ -45,6 +48,7 @@ export type Page = {
|
||||
mtime: number
|
||||
permalinks: Permalink[]
|
||||
fullPath: string
|
||||
relativePath: string
|
||||
title: string
|
||||
shortTitle?: string
|
||||
intro: string
|
||||
|
||||
Reference in New Issue
Block a user