This commit is contained in:
13
src/app.ts
Normal file
13
src/app.ts
Normal 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());
|
||||
}
|
||||
Reference in New Issue
Block a user