Skip to content

Commit

Permalink
Add authors metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
davepagurek committed Mar 2, 2024
1 parent d9426cb commit c6be0b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/content/tutorials/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const tutorialsCollection = defineCollection({
type: "content",
schema: z.object({
title: z.string(),
authors: z.array(z.string()).optional(),
description: z.string().optional(),
category: z.enum(categories),
featuredImage: image().optional(),
Expand Down
4 changes: 4 additions & 0 deletions src/content/tutorials/coordinates-and-transformations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ relatedReferences:
- ellipse
- line
- color
authors:
- Dave Pagurek
- Austin Lee Slominski
- Adam Ferriss
---

import { EditableSketch } from "../../components/EditableSketch/";
Expand Down
1 change: 1 addition & 0 deletions src/pages/tutorials/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const { Content } = await entry.render();
</head>
<body>
<h1>{entry.data.title}</h1>
{entry.data.authors && <h6>By {entry.data.authors.join(', ')}</h6>}
<Content />

<h2>Related examples</h2>
Expand Down

0 comments on commit c6be0b9

Please sign in to comment.