mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-14 20:59:57 +01:00
10 lines
641 B
TypeScript
10 lines
641 B
TypeScript
export async function useContent() {
|
|
const skills = await queryCollection('skills').where('extension', '=', 'json').first()
|
|
const projects = await queryCollection('projects').where('extension', '=', 'md').order('publishedAt', 'DESC').all()
|
|
const education = await queryCollection('education').where('extension', '=', 'md').order('startDate', 'DESC').all()
|
|
const experiences = await queryCollection('experiences').where('extension', '=', 'md').order('startDate', 'DESC').all()
|
|
const contact = await queryCollection('contact').where('extension', '=', 'json').first()
|
|
|
|
return { skills, projects, education, experiences, contact }
|
|
}
|