manual save(2026-01-23 14:38)

This commit is contained in:
SiteAgent Bot
2026-01-23 14:38:13 +08:00
parent 005dfa4ce7
commit f477fc8740
3 changed files with 432 additions and 336 deletions

View File

@@ -5,6 +5,7 @@ import { Footer } from './Footer'
export const SiteLayout: React.FC = () => {
const location = useLocation()
const isHome = location.pathname === '/'
useEffect(() => {
if (location.hash) {
@@ -21,11 +22,11 @@ export const SiteLayout: React.FC = () => {
return (
<div className="min-h-screen bg-[var(--tf-bg)] text-[var(--tf-text)]">
<Header />
{isHome ? null : <Header />}
<main id="main" className="bg-[var(--tf-bg)]">
<Outlet />
</main>
<Footer />
{isHome ? null : <Footer />}
</div>
)
}