From ec0a88bcccf453a5c5be32b43ac492d3c1ad9c6b Mon Sep 17 00:00:00 2001 From: David Nuescheler Date: Thu, 18 Dec 2025 14:59:37 -0700 Subject: [PATCH] chore: footer without form layout --- blocks/footer/footer.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/blocks/footer/footer.js b/blocks/footer/footer.js index 4eaf0888..fd5910ae 100644 --- a/blocks/footer/footer.js +++ b/blocks/footer/footer.js @@ -27,6 +27,17 @@ export default async function decorate(block) { } }); + const formSection = footer.querySelector('.footer-form'); + if (formSection.textContent.trim() === '.') { + formSection.style.display = 'none'; + formSection.closest('section').setAttribute('style', ` + grid-template: + "links social" auto + "links social" auto + "copyright copyright" auto / 2fr 1fr; + `); + } + // decorate social const social = footer.querySelector('.footer-social'); if (social) {