Update gitignore, remove RSS sorting
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -12,9 +12,10 @@ pnpm-debug.log*
|
|||||||
|
|
||||||
# environment variables
|
# environment variables
|
||||||
.env
|
.env
|
||||||
|
.env.development
|
||||||
.env.production
|
.env.production
|
||||||
|
|
||||||
# macOS-specific files
|
# macOS-specific files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
node_modules
|
node_modules
|
||||||
|
|||||||
@@ -3,11 +3,7 @@ import { SITE_TITLE, SITE_DESCRIPTION } from "../config";
|
|||||||
|
|
||||||
let posts = Object.values(import.meta.glob("../posts/*.md", { eager: true }));
|
let posts = Object.values(import.meta.glob("../posts/*.md", { eager: true }));
|
||||||
|
|
||||||
posts = posts.sort(
|
console.log(posts);
|
||||||
(a, b) =>
|
|
||||||
new Date(b.frontmatter.updated || b.frontmatter.added).valueOf() -
|
|
||||||
new Date(a.frontmatter.updated || a.frontmatter.added).valueOf()
|
|
||||||
);
|
|
||||||
|
|
||||||
export const get = () =>
|
export const get = () =>
|
||||||
rss({
|
rss({
|
||||||
|
|||||||
Reference in New Issue
Block a user