mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-08 15:10:37 +00:00
fix: medium theme catalog miss
This commit is contained in:
@@ -46,12 +46,17 @@ export const useMediumGlobal = () => useContext(ThemeGlobalMedium)
|
|||||||
* @constructor
|
* @constructor
|
||||||
*/
|
*/
|
||||||
const LayoutBase = props => {
|
const LayoutBase = props => {
|
||||||
const { children, showInfoCard = true, slotRight, notice } = props
|
const { children, showInfoCard = true, post, notice } = props
|
||||||
const { locale } = useGlobal()
|
const { locale } = useGlobal()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const [tocVisible, changeTocVisible] = useState(false)
|
const [tocVisible, changeTocVisible] = useState(false)
|
||||||
const { onLoading, fullWidth } = useGlobal()
|
const { onLoading, fullWidth } = useGlobal()
|
||||||
|
|
||||||
|
const slotRight = post?.toc?.length > 0 && (
|
||||||
|
<div key={locale.COMMON.TABLE_OF_CONTENTS} >
|
||||||
|
<Catalog toc={post?.toc} />
|
||||||
|
</div>
|
||||||
|
)
|
||||||
const slotTop = <BlogPostBar {...props} />
|
const slotTop = <BlogPostBar {...props} />
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user