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
ironnysh committed Mar 31, 2024
1 parent d60e582 commit e98fb94
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
media:
input: src/assets
output: /assets
content:
- name: sections
label: Sections
type: file
path: 'src/_data/texts.json'
view:
fields: [ title, summary ]
fields:
- name: title
label: Title
type: string
- name: summary
label: Summary
type: text
options:
maxlenght: 140
- name: body
label: Body
type: rich-text
- name: site
label: Site settings
path: src/_data/settings.json
type: file
fields:
- name: title
label: Website title
type: string
- name: description
label: Website description
type: string
description: Will be provided for any page with no description.
- name: url
label: Website URL
type: string
pattern: ^(https?:\/\/)?(www\.)?[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}(\/[^\s]*)?$
- name: socialImage
label: Social image
type: image
description: Image used in the social preview on social networks (e.g. Facebook, Twitter...)

0 comments on commit e98fb94

Please sign in to comment.