Skip to content

Commit c154ce7

Browse files
committed
Update theme and css
1 parent f451258 commit c154ce7

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/css/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,8 @@ article h1 {
5959

6060
.table-of-contents {
6161
display: none;
62+
}
63+
64+
.blog-list-page-wrapper article .markdown > h2:first-child {
65+
margin-top: 0;
6266
}

src/theme/BlogListPage/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ function BlogListPageMetadata(props: Props): JSX.Element {
3333
function BlogListPageContent(props: Props): JSX.Element {
3434
const {metadata, items, sidebar} = props;
3535
return (
36-
<BlogLayout sidebar={sidebar}>
37-
<BlogPostItems items={items} />
36+
<BlogLayout sidebar={sidebar} wrapperClassName='blog-list-page-wrapper'>
37+
<BlogPostItems items={items}/>
3838
<BlogListPaginator metadata={metadata} />
3939
</BlogLayout>
4040
);

src/theme/BlogPostItem/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type {Props} from '@theme/BlogPostItem';
1010
// apply a bottom margin in list view
1111
function useContainerClassName() {
1212
const {isBlogPostPage} = useBlogPost();
13-
return !isBlogPostPage ? 'margin-bottom--lg' : undefined;
13+
return !isBlogPostPage ? 'margin-bottom--xl' : undefined;
1414
}
1515

1616
export default function BlogPostItem({

0 commit comments

Comments
 (0)