diff --git a/src/pages/blog.astro b/src/pages/blog.astro index 6c0d056..4b90c54 100644 --- a/src/pages/blog.astro +++ b/src/pages/blog.astro @@ -6,7 +6,7 @@ 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('./blog/*.{md,mdx}')).sort( - (a, b) => new Date(b.frontmatter.pubDate).valueOf() - new Date(a.frontmatter.pubDate).valueOf() + (a, b) => new Date(b.frontmatter.added).valueOf() - new Date(a.frontmatter.added).valueOf() ); --- @@ -39,8 +39,8 @@ const posts = (await Astro.glob('./blog/*.{md,mdx}')).sort(