diff --git a/themes/fukasawa/components/AsideLeft.js b/themes/fukasawa/components/AsideLeft.js index f6025d04..f534d1b6 100644 --- a/themes/fukasawa/components/AsideLeft.js +++ b/themes/fukasawa/components/AsideLeft.js @@ -151,13 +151,12 @@ function AsideLeft(props) { - + {slot} - } diff --git a/themes/fukasawa/components/Catalog.js b/themes/fukasawa/components/Catalog.js index a69bfbd3..7823ff74 100644 --- a/themes/fukasawa/components/Catalog.js +++ b/themes/fukasawa/components/Catalog.js @@ -54,35 +54,32 @@ const Catalog = ({ toc }) => { // 目录自动滚动 const tRef = useRef(null) - // 无目录就直接返回空 if (!toc || toc?.length < 1) { return <>> } - - return + return {locale.COMMON.TABLE_OF_CONTENTS} - - - {toc.map((tocItem) => { - const id = uuidToId(tocItem.id) - return ( - + {toc.map((tocItem) => { + const id = uuidToId(tocItem.id) + return ( + + - - {tocItem.text} - - - ) - })} - - + {tocItem.text} + + + ) + })} + }