1
0
mirror of synced 2025-12-23 11:54:18 -05:00

Add 'url' field to categories.json (#50897)

This commit is contained in:
Peter Bengtsson
2024-05-30 16:18:24 -04:00
committed by GitHub
parent 6581706d54
commit 8f764884d5
3 changed files with 32 additions and 13 deletions

View File

@@ -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