mirror of
https://github.com/Fluffy-Bean/website.git
synced 2025-05-29 14:53:16 +00:00
Markdown Syntax highlighting
Vitesse theme Draft tag in posts leg
This commit is contained in:
parent
fcc026d06d
commit
a09d21f28c
11 changed files with 1359 additions and 49 deletions
|
@ -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(),
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue