mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-29 09:57:40 +01:00
Refactor code structure for improved readability and maintainability
This commit is contained in:
8
app/composables/content.ts
Normal file
8
app/composables/content.ts
Normal 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 }
|
||||
}
|
||||
Reference in New Issue
Block a user