Refactor code structure for improved readability and maintainability

This commit is contained in:
2025-12-22 23:09:21 +01:00
parent c04bf9f82b
commit e0589826bb
31 changed files with 407 additions and 180 deletions

View File

@@ -0,0 +1,8 @@
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()
return { skills, projects, education, experiences }
}