mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
33 lines
651 B
TypeScript
33 lines
651 B
TypeScript
import { defineCollection, z } from 'astro:content';
|
|
|
|
export const journal = defineCollection({
|
|
schema: z.object({
|
|
title: z.string(),
|
|
featured: z.boolean().optional(),
|
|
author: z.string().default('Stefan Imhoff'),
|
|
date: z.date(),
|
|
updated: z.date().optional(),
|
|
description: z.string().optional(),
|
|
cover: z.string().optional(),
|
|
tags: z.array(
|
|
z.enum([
|
|
'book',
|
|
'code',
|
|
'design',
|
|
'download',
|
|
'film',
|
|
'philosophy',
|
|
'poetry',
|
|
'politics',
|
|
'productivity',
|
|
'recommendation',
|
|
'self-improvement',
|
|
'software',
|
|
'technology',
|
|
'writing',
|
|
])
|
|
),
|
|
series: z.string().optional(),
|
|
}),
|
|
});
|