From a045b394286b7dbb4687502dcbd5863db31ab9eb Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Tue, 16 Apr 2024 00:12:49 +0800 Subject: [PATCH] Render hero top bar only if there is an event on that day --- src/_includes/main/hero.njk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/_includes/main/hero.njk b/src/_includes/main/hero.njk index 3b4d5e3a..36b67459 100644 --- a/src/_includes/main/hero.njk +++ b/src/_includes/main/hero.njk @@ -46,9 +46,7 @@ headerImgEl.classList.add(getBanner(todayEvent)); headerTopBarEl.innerHTML = getBlurbHtml(todayEvent); } - } else { - headerTopBarEl.textContent = "Welcome to Leilukin's Hub!"; - }; + } function getTodayEvent() { const date = new Date();