@quintype/framework 7.19.21 → 7.19.22-staticPageHeader.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -19,6 +19,8 @@ function renderStaticPageContent(store, content) {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
function writeStaticPageResponse(res, url, page, result, { config, renderLayout, seo }) {
|
|
22
|
+
const hideHeader = !page.metadata.header;
|
|
23
|
+
const hideFooter = !page.metadata.footer;
|
|
22
24
|
const qt = {
|
|
23
25
|
pageType: page.type,
|
|
24
26
|
// remove content from data to avoid the script tag inside json breaking the page
|
|
@@ -37,6 +39,8 @@ function writeStaticPageResponse(res, url, page, result, { config, renderLayout,
|
|
|
37
39
|
res.status(page["status-code"] || 200);
|
|
38
40
|
|
|
39
41
|
return renderLayout(res, {
|
|
42
|
+
hideHeader,
|
|
43
|
+
hideFooter,
|
|
40
44
|
title: page.title,
|
|
41
45
|
metadata: page.metadata,
|
|
42
46
|
content: renderStaticPageContent(store, page.content),
|