Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/flo-bit.github.io. my personal website, w/ astro, svelte, tailwind, typescript, threlte flo-bit.dev
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031import { getCollection } from 'astro:content';import { type ClassValue, clsx } from 'clsx';import { twMerge } from 'tailwind-merge';
export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs));}
export const getFeaturedProjects = async () => { return (await getCollection("projects")) .filter((project: any) => project.data.featured) .sort((a: any, b: any) => b.data.date.valueOf() - a.data.date.valueOf());};
export const getProjects = async () => { return (await getCollection("projects")) .sort( (a: any, b: any) => b.data.date.valueOf() - a.data.date.valueOf(), );};
export const getBlogPosts = async () => { const posts = (await getCollection("blog")) .filter((post: any) => post.data.published) .sort( (a: any, b: any) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf(), );
return posts;};