mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
Merge pull request #2314 from Femoon/fix/medium_article_catalog
fix: medium theme catalog miss
This commit is contained in:
@@ -46,12 +46,17 @@ export const useMediumGlobal = () => useContext(ThemeGlobalMedium)
|
||||
* @constructor
|
||||
*/
|
||||
const LayoutBase = props => {
|
||||
const { children, showInfoCard = true, slotRight, notice } = props
|
||||
const { children, showInfoCard = true, post, notice } = props
|
||||
const { locale } = useGlobal()
|
||||
const router = useRouter()
|
||||
const [tocVisible, changeTocVisible] = useState(false)
|
||||
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} />
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user