We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f736c0f commit 5177ea4Copy full SHA for 5177ea4
src/pages/bits/[slug].astro
@@ -4,13 +4,14 @@ import type { CollectionEntry } from "astro:content";
4
import BaseLayout from "../../layouts/base_layout.astro";
5
import Prose from "../../components/article/prose.astro";
6
import ExternalLink from "../../components/article/ExternalLink.astro";
7
+import "remark-notes-plugin/styles.css";
8
9
export async function getStaticPaths() {
10
let bits = await getCollection("bits");
11
12
return bits.map((bit) => {
13
return {
- params: { slug: bit.id.replace('.md', '').replace('.mdx', '') },
14
+ params: { slug: bit.id },
15
props: { bit, allBits: bits },
16
};
17
});
0 commit comments