Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,7 @@ const [stories, briefings, episodes, guides] = await Promise.all([
|
|||||||
const visibleNavigation = navigation.filter((item) => {
|
const visibleNavigation = navigation.filter((item) => {
|
||||||
if (item.href === '/stories') return stories.length > 0;
|
if (item.href === '/stories') return stories.length > 0;
|
||||||
if (item.href === '/briefing') return briefings.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 === '/guides') return guides.length > 0;
|
||||||
if (item.href === '/book') return site.book.enabled;
|
if (item.href === '/book') return site.book.enabled;
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user