tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
highlight what's hot tab if default
awarm.space
1 month ago
63a9157d
74a25b6b
+2
1 changed file
expand all
collapse all
unified
split
app
(home-pages)
reader
layout.tsx
+2
app/(home-pages)/reader/layout.tsx
···
28
28
29
29
const isActive = (href: string) => {
30
30
if (href === "/reader") return pathname === "/reader";
31
31
+
if (href === "/reader/hot" && !isLoggedIn && pathname === "/reader")
32
32
+
return true;
31
33
return pathname.startsWith(href);
32
34
};
33
35