a tool for shared writing and social publishing

highlight what's hot tab if default

+2
+2
app/(home-pages)/reader/layout.tsx
··· 28 28 29 29 const isActive = (href: string) => { 30 30 if (href === "/reader") return pathname === "/reader"; 31 + if (href === "/reader/hot" && !isLoggedIn && pathname === "/reader") 32 + return true; 31 33 return pathname.startsWith(href); 32 34 }; 33 35