Skip to content

Commit 5177ea4

Browse files
committed
fix bits render
Signed-off-by: rishichawda <[email protected]>
1 parent f736c0f commit 5177ea4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/bits/[slug].astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ import type { CollectionEntry } from "astro:content";
44
import BaseLayout from "../../layouts/base_layout.astro";
55
import Prose from "../../components/article/prose.astro";
66
import ExternalLink from "../../components/article/ExternalLink.astro";
7+
import "remark-notes-plugin/styles.css";
78
89
export async function getStaticPaths() {
910
let bits = await getCollection("bits");
1011
1112
return bits.map((bit) => {
1213
return {
13-
params: { slug: bit.id.replace('.md', '').replace('.mdx', '') },
14+
params: { slug: bit.id },
1415
props: { bit, allBits: bits },
1516
};
1617
});

0 commit comments

Comments
 (0)