feat(projects): remove thumbnail and preview field to get images by content id

This commit is contained in:
2025-11-23 13:06:33 +01:00
parent 4815b449e1
commit 856e771c1b
27 changed files with 4 additions and 20 deletions

View File

@@ -79,10 +79,12 @@ export const useProjectsStore = defineStore("projects", {
this.projects = [];
for (const project of projects.value) {
const parts = project.id.replace(".md", "").split("/");
const id = parts[parts.length - 1]!;
this.projects.push({
description: project.description,
thumbnail: project.thumbnail,
preview: createImage(project.preview),
thumbnail: `/images/projects/thumbnails/${id}.webp`,
preview: createImage(`/images/projects/previews/${id}.webp`),
url: project.url,
body: simplifyMarkdownAST(project.body),
});

View File

@@ -9,8 +9,6 @@ export default defineContentConfig({
schema: z.object({
description: z.string(),
url: z.url().nullable(),
thumbnail: z.string(),
preview: z.string(),
order: z.number(),
}),
}),

View File

@@ -1,7 +1,5 @@
---
description: Biobleud - Automated Excel imports\nfor an ERP system
url: null
thumbnail: /images/projects/biobleud.webp
preview: /images/biobleud-game.png
order: 100
---

View File

@@ -1,7 +1,5 @@
---
description: LBF Bot - Custom Discord bot for\na gaming group
url: https://github.com/pihkaal/lbf-bot
thumbnail: /images/projects/lbf-bot.webp
preview: /images/lbf-bot-game.webp
order: 50
---

View File

@@ -1,7 +1,5 @@
---
description: lilou.cat - My cat's website
url: https://lilou.cat
thumbnail: /images/projects/lilou-cat.webp
preview: /images/lilou-cat-game.webp
order: 40
---

View File

@@ -1,8 +1,6 @@
---
description: pihkaal.me - my personal website
url: https://pihkaal.me
thumbnail: /images/projects/pihkaal-me.webp
preview: /images/pihkaal-me-game.webp
order: 10
---

View File

@@ -1,8 +1,6 @@
---
description: Raylib Speedruns - Collection of simple\nRaylib setups in multiple languages
url: https://github.com/pihkaal/raylib-speedruns
thumbnail: /images/projects/raylib-speedruns.webp
preview: /images/raylib-speedruns-game.webp
order: 60
---

View File

@@ -1,7 +1,5 @@
---
description: S3PWeb - Intership and\napprenticeship
url: null
thumbnail: /images/projects/s3pweb.webp
preview: /images/s3pweb-game.webp
order: 80
---

View File

@@ -1,7 +1,5 @@
---
description: Simple QR - Simple QR code generator\nwith straightforward API
url: https://simple-qr.com
thumbnail: /images/projects/simple-qr.webp
preview: /images/simple-qr-game.webp
order: 30
---

View File

@@ -1,7 +1,5 @@
---
description: tlock - fully customizable and cross-\nplatform terminal based clock
url: https://github.com/pihkaal/tlock
thumbnail: /images/projects/tlock.webp
preview: /images/tlock-game.webp
order: 20
---

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

Before

Width:  |  Height:  |  Size: 672 B

After

Width:  |  Height:  |  Size: 672 B

View File

Before

Width:  |  Height:  |  Size: 502 B

After

Width:  |  Height:  |  Size: 502 B

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 762 B

After

Width:  |  Height:  |  Size: 762 B

View File

Before

Width:  |  Height:  |  Size: 164 B

After

Width:  |  Height:  |  Size: 164 B

View File

Before

Width:  |  Height:  |  Size: 260 B

After

Width:  |  Height:  |  Size: 260 B

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 92 B

After

Width:  |  Height:  |  Size: 92 B

View File

Before

Width:  |  Height:  |  Size: 162 B

After

Width:  |  Height:  |  Size: 162 B

View File

Before

Width:  |  Height:  |  Size: 84 B

After

Width:  |  Height:  |  Size: 84 B

View File

Before

Width:  |  Height:  |  Size: 118 B

After

Width:  |  Height:  |  Size: 118 B

View File

Before

Width:  |  Height:  |  Size: 130 B

After

Width:  |  Height:  |  Size: 130 B