refactor: renamed md to posts, and plaintext to files

This commit is contained in:
Lewis Wynne 2026-03-27 19:11:57 +00:00
parent 20811f107b
commit e4052fc145
7 changed files with 13 additions and 13 deletions

View file

@ -1,12 +1,12 @@
import rss from '@astrojs/rss';
import { getCollection } from 'astro:content';
import type { APIContext } from 'astro';
import { getSlug, type Post } from '../lib/md';
import { getSlug, type Post } from '../lib/posts';
import { getTxtFiles } from '../lib/txt';
import { excerpt } from '../lib/format';
export async function GET(context: APIContext) {
const posts = await getCollection('md');
const posts = await getCollection('posts');
const txtFiles = getTxtFiles();
const items = [