14 lines
495 B
TypeScript
14 lines
495 B
TypeScript
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());
|
|
}
|