mirror of
https://github.com/michivonah/website-v3.git
synced 2025-12-22 21:36:28 +01:00
add content type
This commit is contained in:
parent
3da65df407
commit
d8b0af9a94
1 changed files with 29 additions and 2 deletions
31
.pages.yml
31
.pages.yml
|
|
@ -2,6 +2,8 @@ media:
|
|||
input: static/assets
|
||||
output: assets
|
||||
|
||||
settings: false
|
||||
|
||||
content:
|
||||
- name: general
|
||||
label: General
|
||||
|
|
@ -78,7 +80,6 @@ content:
|
|||
type: string
|
||||
|
||||
|
||||
|
||||
- name: socialmedia
|
||||
label: Social Media
|
||||
type: file
|
||||
|
|
@ -130,4 +131,30 @@ content:
|
|||
label: Enabled by default
|
||||
description: Determines if the tag is shown by default
|
||||
type: boolean
|
||||
default: True
|
||||
default: True
|
||||
|
||||
- name: content
|
||||
label: Content
|
||||
type: collection
|
||||
path: content
|
||||
icon: file-text
|
||||
view:
|
||||
fields:
|
||||
- title
|
||||
fields:
|
||||
- name: title
|
||||
label: Title
|
||||
type: string
|
||||
required: true
|
||||
- name: slug
|
||||
label: Slug
|
||||
description: The slug of the current section (used for the navigation, etc.)
|
||||
type: string
|
||||
required: true
|
||||
- name: body
|
||||
label: Content
|
||||
type: rich-text
|
||||
options:
|
||||
format: markdown
|
||||
media: false
|
||||
required: false
|
||||
Loading…
Add table
Add a link
Reference in a new issue