the other middleware perf PR removes this

This commit is contained in:
Sarah Schneider 2021-05-26 15:43:19 -04:00
Родитель 1c6f56f2fd
Коммит cbf07fec4b
1 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -88,18 +88,6 @@ async function versionPages (obj, version, langCode, site) {
: obj.page.intro
}
// Surface any Liquid within Liquid that may not have been parsed, since we are not doing
// parsing round trips above in order to protect our warm-server performance.
if (obj.renderedFullTitle.includes('}')) {
console.error(`WARNING: found Liquid in parsed title on ${obj.page.fullPath}`)
}
if (obj.renderedShortTitle && obj.renderedShortTitle.includes('}')) {
console.error(`WARNING: found Liquid in parsed short title on ${obj.page.fullPath}`)
}
if (obj.renderedIntro && obj.renderedIntro.includes('}')) {
console.error(`WARNING: found Liquid in parsed intro on ${obj.page.fullPath}`)
}
if (!obj.childPages) return obj
const versionedChildPages = await Promise.all(obj.childPages