Files
homepage/theme/index.tsx
T

29 lines
667 B
TypeScript
Raw Normal View History

2026-05-21 00:26:27 -05:00
import "./index.css"
import type { DocLayoutProps } from "@rspress/core/theme-original"
import { DocLayout as OriginalDocLayout } from "@rspress/core/theme-original"
import { Tags } from "./components/Tags"
import { Author } from "./components/Author"
2026-05-21 00:26:27 -05:00
function DocLayout(props: DocLayoutProps) {
return (
<OriginalDocLayout
{...props}
2026-05-21 00:26:27 -05:00
beforeOutline={
<>
<Author className="mx-4 md:mx-0" />
{props.beforeOutline}
2026-05-21 00:26:27 -05:00
</>
}
afterDocContent={
<>
{props.afterDocContent}
<Tags />
</>
}
/>
2026-05-21 00:26:27 -05:00
)
}
2026-05-19 21:45:20 -05:00
2026-05-21 00:26:27 -05:00
export * from "@rspress/core/theme-original"
export { DocLayout }