зеркало из https://github.com/github/docs.git
the other middleware perf PR removes this
This commit is contained in:
Родитель
1c6f56f2fd
Коммит
cbf07fec4b
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче