diff --git a/.gitignore b/.gitignore index 0d9b3da..912a358 100644 --- a/.gitignore +++ b/.gitignore @@ -12,9 +12,10 @@ pnpm-debug.log* # environment variables .env +.env.development .env.production # macOS-specific files .DS_Store -node_modules \ No newline at end of file +node_modules diff --git a/src/pages/rss.xml.js b/src/pages/rss.xml.js index dd68b7a..6241da7 100644 --- a/src/pages/rss.xml.js +++ b/src/pages/rss.xml.js @@ -3,11 +3,7 @@ import { SITE_TITLE, SITE_DESCRIPTION } from "../config"; let posts = Object.values(import.meta.glob("../posts/*.md", { eager: true })); -posts = posts.sort( - (a, b) => - new Date(b.frontmatter.updated || b.frontmatter.added).valueOf() - - new Date(a.frontmatter.updated || a.frontmatter.added).valueOf() -); +console.log(posts); export const get = () => rss({