Add GitBook theme structure with Traditional Chinese docs
This commit is contained in:
27
gitbook/layouts/ArchiveLayout.jsx
Normal file
27
gitbook/layouts/ArchiveLayout.jsx
Normal file
@@ -0,0 +1,27 @@
|
||||
'use client'
|
||||
|
||||
import BlogArchiveItem from '../components/BlogArchiveItem'
|
||||
|
||||
/**
|
||||
* 歸檔頁面
|
||||
* 主要依靠頁面導覽
|
||||
*/
|
||||
const LayoutArchive = props => {
|
||||
const { archivePosts } = props
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className='mb-10 pb-20 md:py-12 py-3 min-h-full'>
|
||||
{Object.keys(archivePosts)?.map(archiveTitle => (
|
||||
<BlogArchiveItem
|
||||
key={archiveTitle}
|
||||
archiveTitle={archiveTitle}
|
||||
archivePosts={archivePosts}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export { LayoutArchive }
|
Reference in New Issue
Block a user