Markdown Syntax highlighting

Vitesse theme
Draft tag in posts
leg
This commit is contained in:
Michał Gdula 2024-05-25 12:39:20 +01:00
parent fcc026d06d
commit a09d21f28c
11 changed files with 1359 additions and 49 deletions

View file

@ -3,6 +3,7 @@ import { z, defineCollection } from "astro:content";
const postsCollection = defineCollection({
type: "content",
schema: z.object({
draft: z.boolean().optional(),
title: z.string(),
description: z.string(),
pubDate: z.date(),
@ -14,6 +15,7 @@ const postsCollection = defineCollection({
const projectsCollection = defineCollection({
type: "content",
schema: z.object({
draft: z.boolean().optional(),
title: z.string(),
description: z.string(),
image: z.string().optional(),

View file

@ -1,4 +1,6 @@
---
#draft: true
title: This is an example Post
description: "Cheat Sheet for Markdown"
pubDate: 2022-07-08
@ -80,7 +82,7 @@ These elements extend the basic syntax by adding additional features. Not all Ma
### Fenced Code Block
```
```json
{
"firstName": "John",
"lastName": "Smith",