This commit is contained in:
@ -9,12 +9,11 @@ export default function HeadingWrapper(props) {
|
||||
const syntheticTitle = useSyntheticTitle();
|
||||
const doc = useDoc();
|
||||
const detail = (doc.metadata as any).detail as Detail;
|
||||
|
||||
return (
|
||||
<>
|
||||
<Heading {...props}>
|
||||
{props.children}
|
||||
{detail && !syntheticTitle && (
|
||||
{detail && !syntheticTitle && props.as.toString() === "h1" && doc.contentTitle==props.children && (
|
||||
<span
|
||||
style={{
|
||||
display: "block",
|
||||
|
@ -6,9 +6,10 @@ export default function AntdProvider({ children }) {
|
||||
return (
|
||||
<ConfigProvider
|
||||
theme={{
|
||||
algorithm: colorMode.isDarkTheme
|
||||
? theme.darkAlgorithm
|
||||
: theme.defaultAlgorithm,
|
||||
algorithm:
|
||||
colorMode.colorMode == "dark"
|
||||
? theme.darkAlgorithm
|
||||
: theme.defaultAlgorithm,
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
|
Reference in New Issue
Block a user