Skip to content

Commit

Permalink
revert: blog home
Browse files Browse the repository at this point in the history
  • Loading branch information
neo773 committed Aug 31, 2024
1 parent 19af735 commit fea681c
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/theme/BlogLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,19 @@ export default function BlogLayout(props: Props): JSX.Element {

return (
<Layout {...layoutProps}>
{!isBlogRoot && (
<div className="container margin-vert--lg">
<div className="row justify-center">
<main
className={clsx("col", {
"col--7": hasSidebar,
"col--9 col--offset-1": !hasSidebar,
})}
>
{children}
</main>
{toc && <div className="col col--2">{toc}</div>}
</div>
<div className="container margin-vert--lg">
<div className="row justify-center">
<main
className={clsx("col", {
"col--7": hasSidebar,
"col--9 col--offset-1": !hasSidebar,
})}
>
{children}
</main>
{toc && <div className="col col--2">{toc}</div>}
</div>
)}
</div>
<BlogRecentPosts sidebar={sidebar} />
</Layout>
)
Expand Down

0 comments on commit fea681c

Please sign in to comment.