uh i think this works?
parent
e5aa20d6ac
commit
a0d8553c96
@ -0,0 +1,19 @@
|
||||
{
|
||||
"0 debug pnpm:scope": {
|
||||
"selected": 1
|
||||
},
|
||||
"1 error pnpm": {
|
||||
"errno": 2,
|
||||
"code": "ELIFECYCLE",
|
||||
"pkgid": "@example/minimal@0.0.1",
|
||||
"stage": "build",
|
||||
"script": "make build",
|
||||
"pkgname": "@example/minimal",
|
||||
"err": {
|
||||
"name": "pnpm",
|
||||
"message": "@example/minimal@0.0.1 build: `make build`\nExit status 2",
|
||||
"code": "ELIFECYCLE",
|
||||
"stack": "pnpm: @example/minimal@0.0.1 build: `make build`\nExit status 2\n at EventEmitter.<anonymous> (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:103873:20)\n at EventEmitter.emit (node:events:390:28)\n at ChildProcess.<anonymous> (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:91802:18)\n at ChildProcess.emit (node:events:390:28)\n at maybeClose (node:internal/child_process:1062:16)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
{
|
||||
"0 debug pnpm:scope": {
|
||||
"selected": 1
|
||||
},
|
||||
"1 error pnpm": {
|
||||
"errno": 2,
|
||||
"code": "ELIFECYCLE",
|
||||
"pkgid": "@example/minimal@0.0.1",
|
||||
"stage": "build",
|
||||
"script": "make build",
|
||||
"pkgname": "@example/minimal",
|
||||
"err": {
|
||||
"name": "pnpm",
|
||||
"message": "@example/minimal@0.0.1 build: `make build`\nExit status 2",
|
||||
"code": "ELIFECYCLE",
|
||||
"stack": "pnpm: @example/minimal@0.0.1 build: `make build`\nExit status 2\n at EventEmitter.<anonymous> (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:103873:20)\n at EventEmitter.emit (node:events:390:28)\n at ChildProcess.<anonymous> (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:91802:18)\n at ChildProcess.emit (node:events:390:28)\n at maybeClose (node:internal/child_process:1062:16)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
---
|
||||
export async function getStaticPaths({paginate, rss}) {
|
||||
const allPosts = Astro.fetchContent('./*.md')
|
||||
const posts = allPosts.sort((a, b) => new Date(b.date) - new Date(a.date));
|
||||
rss({
|
||||
title: "Ruthenic's Blog",
|
||||
description: "My blog, utilized for talking about random things.",
|
||||
items: posts.map(item => ({
|
||||
title: item.title,
|
||||
description: item.description,
|
||||
link: item.url,
|
||||
pubDate: item.date
|
||||
})),
|
||||
dest: "/blog/feed.xml"
|
||||
})
|
||||
return paginate(posts)
|
||||
}
|
||||
---
|
Loading…
Reference in new issue