Remove MDX

This commit is contained in:
Cassidy Williams
2022-10-24 00:01:33 -05:00
parent 0d4e70c5ee
commit 8f1fa8109c
4 changed files with 2 additions and 734 deletions

731
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,7 +10,6 @@
"astro": "astro" "astro": "astro"
}, },
"devDependencies": { "devDependencies": {
"@astrojs/mdx": "^0.10.0",
"@astrojs/rss": "^1.0.0", "@astrojs/rss": "^1.0.0",
"@astrojs/sitemap": "^1.0.0", "@astrojs/sitemap": "^1.0.0",
"astro": "^1.0.7", "astro": "^1.0.7",

View File

@@ -7,7 +7,7 @@ import ColorScript from "../components/ColorScript.astro";
import { SITE_TITLE, SITE_DESCRIPTION } from "../config"; import { SITE_TITLE, SITE_DESCRIPTION } from "../config";
import { Content as About } from "./about.md"; 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 // Get tags from all posts
const getTags = posts const getTags = posts

View File

@@ -8,7 +8,7 @@ import ColorScript from "../components/ColorScript.astro";
import { SITE_TITLE, SITE_DESCRIPTION } from "../config"; import { SITE_TITLE, SITE_DESCRIPTION } from "../config";
// Use Astro.glob() to fetch all posts, and then sort them by date. // 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) => (a, b) =>
new Date(b.frontmatter.added).valueOf() - new Date(b.frontmatter.added).valueOf() -
new Date(a.frontmatter.added).valueOf() new Date(a.frontmatter.added).valueOf()