succesfully implemented mdx

This commit is contained in:
2024-02-02 10:02:31 +01:00
parent 53008701e0
commit 2f962e3e90
4 changed files with 84 additions and 81 deletions

View File

@@ -1,6 +1,6 @@
---
import Layout from "../layouts/Layout.astro";
const unsortedDocs = await Astro.glob("./docs/*/*.md");
const unsortedDocs = await Astro.glob("./docs/*/*.mdx");
const docs = unsortedDocs
.sort(
(a, b) => +new Date(b.frontmatter.date) - +new Date(a.frontmatter.date),