refactor(projects): store images in content/, then copy them to public/ using custom nuxt module
This commit is contained in:
@@ -84,11 +84,11 @@ export const useProjectsStore = defineStore("projects", {
|
||||
|
||||
for (const project of projects.value) {
|
||||
const parts = project.id.replace(".md", "").split("/");
|
||||
const id = parts[parts.length - 1]!;
|
||||
const id = parts[parts.length - 2]!;
|
||||
this.projects.push({
|
||||
description: project.description,
|
||||
thumbnail: `/images/projects/thumbnails/${id}.webp`,
|
||||
preview: `/images/projects/previews/${id}.webp`,
|
||||
thumbnail: `/images/projects/${id}/thumbnail.webp`,
|
||||
preview: `/images/projects/${id}/preview.webp`,
|
||||
url: project.url,
|
||||
body: simplifyMarkdownAST(project.body),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user