Skip to content

Commit

Permalink
chore: add teasers to collections
Browse files Browse the repository at this point in the history
  • Loading branch information
robocopklaus committed Sep 2, 2024
1 parent 391a9e5 commit b993b70
Show file tree
Hide file tree
Showing 12 changed files with 76 additions and 4 deletions.
1 change: 0 additions & 1 deletion content/collections/case_studies.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
title: 'Case Studies'
template: default
layout: layout
revisions: false
sort_dir: asc
Expand Down
7 changes: 7 additions & 0 deletions content/collections/clients.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
title: Clients
layout: layout
revisions: false
sort_dir: asc
date_behavior:
past: public
future: private
preview_targets:
-
label: Entry
url: '{permalink}'
refresh: true
1 change: 0 additions & 1 deletion content/collections/experts.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
title: Experts
template: default
layout: layout
revisions: false
title_format: '{forename} {surname}'
Expand Down
7 changes: 7 additions & 0 deletions content/collections/foundations.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
title: Foundations
layout: layout
revisions: false
sort_dir: asc
date_behavior:
past: public
future: private
preview_targets:
-
label: Entry
url: '{permalink}'
refresh: true
1 change: 0 additions & 1 deletion content/collections/pages.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
title: Pages
template: default
layout: layout
revisions: false
route: '{parent_uri}/{slug}'
Expand Down
7 changes: 7 additions & 0 deletions content/collections/services.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
title: Services
layout: layout
revisions: false
sort_dir: asc
date_behavior:
past: public
future: private
preview_targets:
-
label: Entry
url: '{permalink}'
refresh: true
7 changes: 7 additions & 0 deletions content/collections/solutions.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
title: Solutions
layout: layout
revisions: false
sort_dir: asc
date_behavior:
past: public
future: private
preview_targets:
-
label: Entry
url: '{permalink}'
refresh: true
1 change: 0 additions & 1 deletion content/collections/testimonials.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
title: Testimonials
template: default
layout: layout
revisions: false
title_format: '{forename} {surname}'
Expand Down
8 changes: 8 additions & 0 deletions resources/blueprints/collections/case_studies/case_study.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@ tabs:
type: slug
localizable: true
validate: 'max:200'
teaser:
display: Teaser
sections:
-
fields:
-
handle: teaser
field: common.teaser
8 changes: 8 additions & 0 deletions resources/blueprints/collections/services/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@ tabs:
type: slug
localizable: true
validate: 'max:200'
teaser:
display: Teaser
sections:
-
fields:
-
handle: teaser
field: common.teaser
8 changes: 8 additions & 0 deletions resources/blueprints/collections/solutions/solution.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@ tabs:
type: slug
localizable: true
validate: 'max:200'
teaser:
display: Teaser
sections:
-
fields:
-
handle: teaser
field: common.teaser
24 changes: 24 additions & 0 deletions resources/fieldsets/common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
title: Common
fields:
- handle: teaser
field:
fullscreen: false
border: false
type: group
display: Teaser
hide_display: true
fields:
- handle: title
field:
type: text
display: Title
instructions: 'Enter the title for the teaser. This should be attention-grabbing and summarize the main point.'
validate:
- required
- handle: text
field:
type: textarea
display: Text
instructions: 'Enter the main content or summary for the teaser. This should provide a brief overview or highlight key details.'
validate:
- required

0 comments on commit b993b70

Please sign in to comment.