Finish text section on article page add home link

This commit is contained in:
adilallo
2025-09-11 12:58:52 -06:00
parent 6123ced665
commit ec2db8be22
9 changed files with 116 additions and 53 deletions
+17
View File
@@ -0,0 +1,17 @@
"use client";
import { usePathname } from "next/navigation";
import Header from "./Header";
import HomeHeader from "./HomeHeader";
export default function ConditionalHeader() {
const pathname = usePathname();
// Show HomeHeader only on the homepage (/)
if (pathname === "/") {
return <HomeHeader />;
}
// Show regular Header on all other pages
return <Header />;
}