diff --git a/.changeset/witty-tools-repair.md b/.changeset/witty-tools-repair.md new file mode 100644 index 0000000000..e2f78230a8 --- /dev/null +++ b/.changeset/witty-tools-repair.md @@ -0,0 +1,5 @@ +--- +'nextra-theme-blog': patch +--- + +add missing class names to override styles diff --git a/packages/nextra-theme-blog/src/mdx-theme.tsx b/packages/nextra-theme-blog/src/mdx-theme.tsx index a9ad5b1630..97f804c33b 100644 --- a/packages/nextra-theme-blog/src/mdx-theme.tsx +++ b/packages/nextra-theme-blog/src/mdx-theme.tsx @@ -40,7 +40,7 @@ const createHeaderLink = (Tag: `h${2 | 3 | 4 | 5 | 6}`) => ({ children, id, ...props }: ComponentProps<'h2'>): ReactElement => { return ( - + {children} diff --git a/packages/nextra-theme-blog/src/posts-layout.tsx b/packages/nextra-theme-blog/src/posts-layout.tsx index 38d2f08770..7afbaca12e 100644 --- a/packages/nextra-theme-blog/src/posts-layout.tsx +++ b/packages/nextra-theme-blog/src/posts-layout.tsx @@ -12,7 +12,9 @@ export const PostsLayout = ({ children }: { children: ReactNode }) => { const { config, opts } = useBlogContext() const { posts } = collectPostsAndNavs({ config, opts }) const router = useRouter() - const { meta: { type } } = opts + const { + meta: { type } + } = opts const tagName = type === 'tag' ? router.query.tag : null const postList = posts.map(post => { if (tagName) { @@ -29,7 +31,7 @@ export const PostsLayout = ({ children }: { children: ReactNode }) => { const description = post.frontMatter?.description return ( -
+

{postTitle} @@ -40,13 +42,16 @@ export const PostsLayout = ({ children }: { children: ReactNode }) => { {description} {config.readMore && ( - {config.readMore} + {config.readMore} )}

)} {date && ( -