style: Try biome

This commit is contained in:
BuyMyMojo 2024-12-19 11:53:42 +11:00
parent 54b4349667
commit 7ed39cd0df
Signed by: aria
GPG key ID: 19AB7AA462B8AB3B
11 changed files with 180 additions and 152 deletions

View file

@ -1,12 +1,13 @@
---
import { getCollection, render } from 'astro:content';
import MarkdownPostLayout from '../../layouts/MarkdownPostLayout.astro';
import { getCollection, render } from "astro:content";
import MarkdownPostLayout from "../../layouts/MarkdownPostLayout.astro";
export async function getStaticPaths() {
const posts = await getCollection('blog');
return posts.map(post => ({
params: { slug: post.id }, props: { post },
}));
const posts = await getCollection("blog");
return posts.map((post) => ({
params: { slug: post.id },
props: { post },
}));
}
const { post } = Astro.props;