restore portfolio

This commit is contained in:
Semyon 2026-08-10 15:09:14 +03:00
parent 82c21e9479
commit 13a67bbf8d
28 changed files with 7747 additions and 19 deletions

36
src/content.config.ts Normal file
View file

@ -0,0 +1,36 @@
import { defineCollection, z } from "astro:content";
import { glob } from "astro/loaders";
const blog = defineCollection({
loader: glob({
pattern: "**/*.{md,mdx}",
base: "./src/content/blog",
}),
schema: z.object({
title: z.string(),
description: z.string(),
pubDate: z.coerce.date(),
tags: z.array(z.string()).default([]),
draft: z.boolean().default(false),
}),
});
const projects = defineCollection({
loader: glob({
pattern: "**/*.{md,mdx}",
base: "./src/content/projects",
}),
schema: z.object({
title: z.string(),
description: z.string(),
status: z.string(),
stack: z.array(z.string()).default([]),
featured: z.boolean().default(false),
draft: z.boolean().default(false),
}),
});
export const collections = {
blog,
projects,
};