From e8403dbfb4373371a46fcee4179bcb241e9af6e9 Mon Sep 17 00:00:00 2001 From: Compleet Date: Tue, 14 Jul 2026 14:11:22 +0100 Subject: [PATCH] Use truthiness for the literal-typed feed URL check Co-Authored-By: Claude Fable 5 --- src/components/Header.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Header.astro b/src/components/Header.astro index b12b018..ce199a1 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -12,7 +12,7 @@ const [stories, briefings, episodes, guides] = await Promise.all([ const visibleNavigation = navigation.filter((item) => { if (item.href === '/stories') return stories.length > 0; if (item.href === '/briefing') return briefings.length > 0; - if (item.href === '/podcast') return episodes.length > 0 || site.podcastFeedUrl !== ''; + if (item.href === '/podcast') return episodes.length > 0 || Boolean(site.podcastFeedUrl); if (item.href === '/guides') return guides.length > 0; if (item.href === '/book') return site.book.enabled; return true;