Skip to content

Commit 1a6b56f

Browse files
committed
feat: update transformer
1 parent 55a6834 commit 1a6b56f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/PostCard/PostCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const PostCard = ({
100100
blogCard: true,
101101
}}
102102
id={titleId}
103-
variant={titleHeadingLevel}
103+
tagName={titleHeadingLevel}
104104
/>
105105
)}
106106
{description && (

src/data/transformPost.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const transformPost = ({postData, lang, options: {plugins} = {}}: Transfo
3030

3131
return {
3232
...post,
33-
title,
33+
title: yfmTransformer(lang, title as string, {plugins}),
3434
tags,
3535
textTitle: typografToText(title, lang),
3636
htmlTitle: typografToHTML(title, lang),

0 commit comments

Comments
 (0)