Skip to content

Commit

Permalink
Fix path of mdx file
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallku committed Jan 19, 2025
1 parent 7c85f9b commit da33c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/blog/src/plugins/lib/remarkLocalImages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function remarkLocalImages({ slug }: { slug: string }) {
}

// Absolute path to the MDX file
const mdxFilePath = join(POSTS_DIRECTORY, slug, "index.mdx");
const mdxFilePath = join(POSTS_DIRECTORY, `${slug}.mdx`);
// e.g. /Users/you/your-project/posts/hello-world/index.mdx
const mdxDir = dirname(mdxFilePath);

Expand Down

1 comment on commit da33c07

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visual regression test result - success

Component Story Success Viewport MisMatch Percentage
components-button string-children phone 0.00%
components-button string-children tablet 0.10%
input-input default phone 0.00%
input-input default tablet 0.10%
input-input line phone 0.00%
input-input line tablet 0.04%
input-input box phone 0.00%
input-input box tablet 0.04%
input-textarea line phone 0.00%
input-textarea line tablet 0.04%
input-textarea box phone 0.00%
input-textarea box tablet 0.04%
typography-typography default phone 0.00%
typography-typography default tablet 0.07%

Please sign in to comment.