Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into refactor-documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hetd54 committed Jul 18, 2024
2 parents 9759253 + 1cc7382 commit 65f9728
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
11 changes: 11 additions & 0 deletions public/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ i18n:
# The locale to be used for fields validation and as a baseline for the entry.
default_locale: en
collections:
- name: map
label: Map
folder: src/content/map
create: false
fields:
- name: title
label: Map Version
widget: text
- name: image
label: MMP Community Map
widget: image
- name: people
label: People
folder: src/content/people
Expand Down
16 changes: 15 additions & 1 deletion src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,18 @@ const people = defineCollection({
bio: z.string(),
}),
})
export const collections = { news: news, data: files, people: people, publications: publications }

const map = defineCollection({
type: "content",
schema: z.object({
title: z.string(),
image: z.string(),
}),
})
export const collections = {
news: news,
data: files,
people: people,
publications: publications,
map: map,
}
4 changes: 4 additions & 0 deletions src/content/map/174.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "174"
image: /public/images/MMP_Map.jpg
---

0 comments on commit 65f9728

Please sign in to comment.