diff --git a/app/pages/projects/index.vue b/app/pages/projects/index.vue
index 754a57d..09846b5 100644
--- a/app/pages/projects/index.vue
+++ b/app/pages/projects/index.vue
@@ -11,6 +11,7 @@ useSeoMeta({
const { data: projects } = await useAsyncData('all-projects', () => {
return queryCollection('projects')
+ .order('favorite', 'DESC')
.order('publishedAt', 'DESC')
.all()
})
@@ -35,9 +36,17 @@ const { data: projects } = await useAsyncData('all-projects', () => {
-
- {{ project.title }}
-
+
+
+ {{ project.title }}
+
+
+
{{ project.description }}
diff --git a/content.config.ts b/content.config.ts
index 2d79240..0f3a4ce 100644
--- a/content.config.ts
+++ b/content.config.ts
@@ -15,6 +15,7 @@ export const collections = {
publishedAt: z.date(),
tags: z.array(z.string()),
cover: z.string(),
+ favorite: z.boolean().optional(),
}),
}),
writings: defineCollection({
diff --git a/content/projects/artsite.md b/content/projects/artsite.md
index 717d06b..b0d3707 100644
--- a/content/projects/artsite.md
+++ b/content/projects/artsite.md
@@ -5,6 +5,7 @@ description: My personal website, my portfolio, and my blog.
publishedAt: 2024/06/01
readingTime: 1
cover: artsite/cover.png
+favorite: true
tags:
- web
---
diff --git a/content/projects/studies.md b/content/projects/studies.md
index b9d1d67..f4f6953 100644
--- a/content/projects/studies.md
+++ b/content/projects/studies.md
@@ -4,6 +4,7 @@ title: 🎓 Studies projects
description: A collection of projects done during my studies.
publishedAt: 2023/09/01
readingTime: 1
+favorite: true
tags:
- data
- python