From e7012f41ea62beeb95916996520978baee95cd71 Mon Sep 17 00:00:00 2001 From: Ray Estrada Date: Tue, 7 Jan 2025 10:43:33 -0800 Subject: [PATCH 1/2] DIGITAL-250: Update template to match digital.gov --- .../digital_gov/templates/node/node--basic-page.html.twig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/themes/custom/digital_gov/templates/node/node--basic-page.html.twig b/web/themes/custom/digital_gov/templates/node/node--basic-page.html.twig index a8034126..3776849b 100644 --- a/web/themes/custom/digital_gov/templates/node/node--basic-page.html.twig +++ b/web/themes/custom/digital_gov/templates/node/node--basic-page.html.twig @@ -63,6 +63,9 @@ */ #} +{# Caching the data in content object #} +{% set savedCache = content | render %} +
@@ -83,7 +86,7 @@ >
- {{ content }} + {{ content.body | field_value }}
From 5f8065d7284da4f969c6d00dcdaa3e97da0d79d7 Mon Sep 17 00:00:00 2001 From: Ray Estrada Date: Tue, 7 Jan 2025 10:52:33 -0800 Subject: [PATCH 2/2] DIGITAL-250: linting fix --- .../digital_gov/templates/node/node--basic-page.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/themes/custom/digital_gov/templates/node/node--basic-page.html.twig b/web/themes/custom/digital_gov/templates/node/node--basic-page.html.twig index 3776849b..8bc45d2e 100644 --- a/web/themes/custom/digital_gov/templates/node/node--basic-page.html.twig +++ b/web/themes/custom/digital_gov/templates/node/node--basic-page.html.twig @@ -64,7 +64,7 @@ #} {# Caching the data in content object #} -{% set savedCache = content | render %} +{% set savedCache = content|render %}
@@ -86,7 +86,7 @@ >
- {{ content.body | field_value }} + {{ content.body|field_value }}