refactor:

This commit is contained in:
Lewis Wynne 2026-01-31 22:41:24 +00:00
parent 38b5413a37
commit 7f01bec7e6
17 changed files with 121 additions and 132 deletions

View file

@ -2,7 +2,7 @@
import { getCollection, render } from 'astro:content';
import Layout from '../../layouts/Layout.astro';
import { formatDate } from '../../lib/format';
import { getSlug } from '../../lib/posts';
import { getSlug } from '../../lib/md';
export async function getStaticPaths() {
const posts = await getCollection('md', ({ data }) => data.draft !== true);