Files
continuwuity/theme/index.tsx
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
830 B
TypeScript
Raw Normal View History

2026-01-29 10:35:19 -05:00
import { HomeLayout as BasicHomeLayout, DocContent } from "@rspress/core/theme-original";
2025-11-22 20:58:18 +00:00
2025-11-22 22:41:53 +00:00
import { useFrontmatter } from '@rspress/core/runtime';
interface HomeLayoutProps {
components?: Record<string, React.FC>;
}
2025-11-22 20:58:18 +00:00
2025-11-22 22:41:53 +00:00
function HomeLayout(props: HomeLayoutProps) {
console.log(props)
const { frontmatter } = useFrontmatter();
return (
<BasicHomeLayout
afterFeatures={
(frontmatter.doc) ?
<main className="rp-doc-layout__doc-container">
<div className="rp-doc rspress-doc">
<DocContent components={props.components} />
</div>
</main>
: <></>
}
/>
);
}
export { HomeLayout };
2026-01-29 10:35:19 -05:00
export * from "@rspress/core/theme-original";
2025-11-22 22:41:53 +00:00
import "./index.css";