Skip to content

Commit

Permalink
Update .pages.yml (via Pages CMS)
Browse files Browse the repository at this point in the history
  • Loading branch information
judaicadhpenn committed Jan 11, 2025
1 parent 1592d33 commit e5b5385
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions .pages.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# CMS Configuration for Starlight Astro Exhibits
collections:
# Collection for exhibits under references
references:
content:
- name: references
label: "Exhibits"
path: "src/content/reference/{slug}.md"
type: collection
path: "src/content/reference"
icon: "book"
filename: "{slug}.md"
format: "yaml-frontmatter"
exclude: [README.md]
fields:
- name: "title"
label: "Exhibit Title"
Expand All @@ -16,12 +19,6 @@ collections:
- name: "date"
label: "Publication Date"
type: "date"
required: false
- name: "slug"
label: "Slug"
type: "string"
required: true
description: "The URL path for this exhibit page."
- name: "hero"
label: "Hero Section"
type: "group"
Expand All @@ -32,11 +29,14 @@ collections:
- name: "tagline"
label: "Tagline"
type: "string"
required: false
- name: "slug"
label: "Slug"
type: "string"
required: true
description: "The URL path for this exhibit page."
- name: "tableOfContents"
label: "Table of Contents"
type: "group"
description: "Configure TOC heading levels."
fields:
- name: "minHeadingLevel"
label: "Minimum Heading Level"
Expand All @@ -45,7 +45,7 @@ collections:
- name: "maxHeadingLevel"
label: "Maximum Heading Level"
type: "number"
default: 5
default: 3
- name: "template"
label: "Template"
type: "string"
Expand All @@ -54,4 +54,10 @@ collections:
- name: "content"
label: "Page Content"
type: "markdown"
description: "The main content of the exhibit page, written in markdown."
description: "The main content of the exhibit, written in Markdown."
view:
primary: "title"
sortable: ["title", "date"]
searchable: ["title", "description"]
default_sort: { key: "title", order: "asc" }
subfolders: false

0 comments on commit e5b5385

Please sign in to comment.