|
|
@ -1,4 +1,4 @@
|
|
|
|
// types shared between server and client.
|
|
|
|
// types shared between server and client
|
|
|
|
|
|
|
|
|
|
|
|
export interface LocaleConfig {
|
|
|
|
export interface LocaleConfig {
|
|
|
|
lang: string
|
|
|
|
lang: string
|
|
|
@ -10,10 +10,10 @@ export interface LocaleConfig {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export interface SiteData<ThemeConfig = any> {
|
|
|
|
export interface SiteData<ThemeConfig = any> {
|
|
|
|
|
|
|
|
base: string
|
|
|
|
lang: string
|
|
|
|
lang: string
|
|
|
|
title: string
|
|
|
|
title: string
|
|
|
|
description: string
|
|
|
|
description: string
|
|
|
|
base: string
|
|
|
|
|
|
|
|
head: HeadConfig[]
|
|
|
|
head: HeadConfig[]
|
|
|
|
themeConfig: ThemeConfig
|
|
|
|
themeConfig: ThemeConfig
|
|
|
|
locales: Record<string, LocaleConfig>
|
|
|
|
locales: Record<string, LocaleConfig>
|
|
|
|