update npm deps, convert rss feed to use @astrojs/rss
parent
5e4793aeed
commit
f26965a155
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,19 @@
|
||||
import rss from "@astrojs/rss";
|
||||
|
||||
//console.log(await import.meta.glob("./*.md")['./afterlife.md']())
|
||||
|
||||
const posts = import.meta.glob("./*.md");
|
||||
Object.keys(posts).forEach(async (k) => {
|
||||
const res = await posts[k]();
|
||||
console.log(res)
|
||||
if (res.frontmatter.wip) {
|
||||
delete posts[k];
|
||||
}
|
||||
})
|
||||
|
||||
export const get = () => rss({
|
||||
title: "Ruthenic's blog",
|
||||
description: "My blog, utilized for talking about random things.",
|
||||
site: import.meta.env.SITE,
|
||||
items: posts
|
||||
})
|
Loading…
Reference in new issue