diff --git a/src/models.ts b/src/models.ts index 82928198..4405c8e2 100644 --- a/src/models.ts +++ b/src/models.ts @@ -126,6 +126,7 @@ export interface LeadingPage { description?: TextItems; meta?: { title?: TextItems; + description?: TextItems; noIndex?: boolean; }; nav?: { diff --git a/src/services/leading.ts b/src/services/leading.ts index abe74837..4a208fe3 100644 --- a/src/services/leading.ts +++ b/src/services/leading.ts @@ -48,6 +48,15 @@ function filterFile(path: string) { parsedIndex.meta.title = liquidField(metaTitle, combinedVars, path); } + if (parsedIndex.meta?.description) { + const metaDescription = firstFilterTextItems( + parsedIndex.meta.description, + combinedVars, + {resolveConditions: true}, + ); + parsedIndex.meta.description = liquidField(metaDescription, combinedVars, path); + } + if (parsedIndex.nav) { const navTitle = firstFilterTextItems( parsedIndex.nav.title,