Remove MDX
This commit is contained in:
731
package-lock.json
generated
731
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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",
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user