Initial commit
All checks were successful
Build / build (push) Successful in 17s

This commit is contained in:
2025-12-14 16:48:50 +00:00
commit 97eb93d3af
29 changed files with 3127 additions and 0 deletions

13
src/app.ts Normal file
View File

@@ -0,0 +1,13 @@
import { allPosts } from 'content-collections';
import type { Post } from 'content-collections';
export const SITE_AUTHOR = 'Rgebee';
export const SITE_TITLE = SITE_AUTHOR;
export const SITE_DESCRIPTION = 'Personal website';
export const SITE_URL = 'https://rgebee.quartznet.info';
export async function getBlogCollection(): Promise<Post[]> {
return (allPosts)
.filter(post => import.meta.env.DEV || !post.draft)
.sort((a, b) => b.dateCreated.valueOf() - a.dateCreated.valueOf());
}