fix: extract domestic paper titles cleanly without quotes and remove All Overview tab from Publications
This commit is contained in:
@@ -8,21 +8,10 @@ interface CategoryNavProps {
|
||||
totalCount?: number;
|
||||
}
|
||||
|
||||
export function CategoryNav({ currentCategory, totalCount }: CategoryNavProps) {
|
||||
export function CategoryNav({ currentCategory }: CategoryNavProps) {
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<div className="flex flex-wrap items-center gap-2 border-b border-line pb-4">
|
||||
<Link
|
||||
href="/publications"
|
||||
className={`px-4 py-2 rounded text-xs font-mono tracking-wider transition-colors ${
|
||||
!currentCategory
|
||||
? "bg-ink text-ivory font-bold"
|
||||
: "bg-paper text-ink border border-line hover:border-ink"
|
||||
}`}
|
||||
>
|
||||
All Overview {!currentCategory && totalCount ? `(${totalCount})` : ""}
|
||||
</Link>
|
||||
|
||||
{PUB_CATEGORIES.map((cat) => {
|
||||
const isActive = currentCategory === cat.slug;
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user