fix: add robots field to MetaConfig and I18nMetaConfig
This commit is contained in:
parent
0dc2a0a570
commit
9279ae063e
2 changed files with 4 additions and 0 deletions
|
|
@ -220,6 +220,8 @@ export interface I18nMetaConfig {
|
||||||
twitter?: I18nTwitterCardConfig | ((route: any) => I18nTwitterCardConfig)
|
twitter?: I18nTwitterCardConfig | ((route: any) => I18nTwitterCardConfig)
|
||||||
/** Custom meta tags */
|
/** Custom meta tags */
|
||||||
custom?: MetaConfig['custom']
|
custom?: MetaConfig['custom']
|
||||||
|
/** Robots meta directive (e.g. 'index, follow') */
|
||||||
|
robots?: string | ((route: any) => string)
|
||||||
/** Hreflang configuration for international SEO */
|
/** Hreflang configuration for international SEO */
|
||||||
hreflang?: {
|
hreflang?: {
|
||||||
[locale: string]: string
|
[locale: string]: string
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,8 @@ export interface MetaConfig {
|
||||||
appendLocale?: boolean
|
appendLocale?: boolean
|
||||||
/** Title template for formatting */
|
/** Title template for formatting */
|
||||||
titleTemplate?: (title: string) => string
|
titleTemplate?: (title: string) => string
|
||||||
|
/** Robots meta directive (e.g. 'index, follow') */
|
||||||
|
robots?: string | ((route: RouteLocationNormalizedLoaded) => string)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue