Remove MDX
This commit is contained in:
@@ -7,7 +7,7 @@ import ColorScript from "../components/ColorScript.astro";
|
||||
import { SITE_TITLE, SITE_DESCRIPTION } from "../config";
|
||||
import { Content as About } from "./about.md";
|
||||
|
||||
const posts = await Astro.glob("../posts/*.{md,mdx}");
|
||||
const posts = await Astro.glob("../posts/*.md");
|
||||
|
||||
// Get tags from all posts
|
||||
const getTags = posts
|
||||
|
||||
@@ -8,7 +8,7 @@ import ColorScript from "../components/ColorScript.astro";
|
||||
import { SITE_TITLE, SITE_DESCRIPTION } from "../config";
|
||||
|
||||
// Use Astro.glob() to fetch all posts, and then sort them by date.
|
||||
const posts = (await Astro.glob("../posts/*.{md,mdx}")).sort(
|
||||
const posts = (await Astro.glob("../posts/*.md")).sort(
|
||||
(a, b) =>
|
||||
new Date(b.frontmatter.added).valueOf() -
|
||||
new Date(a.frontmatter.added).valueOf()
|
||||
|
||||
Reference in New Issue
Block a user