@@ -3,29 +3,27 @@ import clsx from 'clsx'
33import Layout from '@theme/Layout'
44import BlogSidebar from '@theme/BlogSidebar'
55
6- import './BlogLayout.scss' // Import the SCSS file
7-
86export default function BlogLayout ( props ) {
97 const { sidebar, toc, children, ...layoutProps } = props
108 const hasSidebar = sidebar && sidebar . items . length > 0
119
1210 return (
1311 < Layout { ...layoutProps } >
14- < div className = "blog-layout" >
15- < div className = "blog-layout__row" >
12+ < div className = 'container max-w-7xl px-4 py-4 mx-auto mt-4' >
13+ < div className = 'row' >
1614 < BlogSidebar sidebar = { sidebar } hideOnDesktop />
1715 < main
18- className = { clsx ( 'blog-layout__main ' , {
19- 'blog-layout__main--full ' : hasSidebar && ! toc ,
20- 'blog-layout__main--with-toc ' : hasSidebar && toc ,
21- 'blog-layout__main--no-sidebar ' : ! hasSidebar
16+ className = { clsx ( 'col ' , {
17+ 'col--12 ' : hasSidebar && ! toc ,
18+ 'col--9 ' : hasSidebar && toc ,
19+ 'col--9 col--offset-1 ' : ! hasSidebar
2220 } ) }
2321 >
2422 { children }
2523 </ main >
26- { toc && < div className = "blog-layout__toc" > { toc } </ div > }
24+ { toc && < div className = 'col col--3' > { toc } </ div > }
2725 </ div >
2826 </ div >
2927 </ Layout >
3028 )
31- }
29+ }
0 commit comments