feat: removed pins, and added right-aligned suffixes

This commit is contained in:
Lewis Wynne 2026-03-27 19:09:39 +00:00
parent c647fd62c3
commit 20811f107b
8 changed files with 51 additions and 25 deletions

View file

@ -3,13 +3,12 @@ import { glob, file } from 'astro/loaders';
import { z } from 'astro/zod';
import yaml from 'js-yaml';
const md = defineCollection({
const posts = defineCollection({
loader: glob({ pattern: '**/*.md', base: './content' }),
schema: z.object({
title: z.string(),
date: z.coerce.date(),
updated: z.coerce.date().optional(),
pinned: z.boolean().optional(),
category: z.string().optional(),
related: z.array(z.string()).optional(),
})