From cbf07fec4b268411c12e0178814bca6d09fc0c28 Mon Sep 17 00:00:00 2001 From: Sarah Schneider Date: Wed, 26 May 2021 15:43:19 -0400 Subject: [PATCH] the other middleware perf PR removes this --- lib/page-data.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/page-data.js b/lib/page-data.js index fcb7a66678..2871f94d49 100644 --- a/lib/page-data.js +++ b/lib/page-data.js @@ -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