Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion models/Header.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fields:
value: variant-d
- label: Header with logo centered and primary links centered
value: variant-e
default: variant-a
default: variant-c
- type: enum
name: primaryColors
label: Primary colors
Expand Down Expand Up @@ -141,6 +141,11 @@ fields:
name: logo
label: Logo
models: [ImageBlock]
default:
type: ImageBlock
url: ''
altText: ''
caption: ''
- type: list
name: primaryLinks
label: Primary navigation links
Expand Down
16 changes: 8 additions & 8 deletions models/MediaGallerySection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ fields:
default:
- type: ImageBlock
url: https://assets.stackbit.com/components/images/default/image-1.jpeg
altText: Media gallery image
caption: Image caption
altText: Image one
caption: Image one caption
- type: ImageBlock
url: https://assets.stackbit.com/components/images/default/image-2.jpeg
altText: Media gallery image
caption: Image caption
altText: Image two
caption: Image two caption
- type: ImageBlock
url: https://assets.stackbit.com/components/images/default/image-3.jpeg
altText: Media gallery image
caption: Image caption
altText: Image three
caption: Image three caption
- type: ImageBlock
url: https://assets.stackbit.com/components/images/default/image-4.jpeg
altText: Media gallery image
caption: Image caption
altText: Image four
caption: Image four caption
- type: number
name: spacing
label: Spacing between images
Expand Down
2 changes: 1 addition & 1 deletion models/PostLayout.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fields:
- type: string
name: excerpt
label: Excerpt
default: This is the excerpt of your blog post visible in the post feed or featured posts.
default: Nunc rutrum felis dui, ut consequat sapien scelerisque vel. Integer condimentum dignissim justo vel faucibus.
- type: model
name: featuredImage
label: Featured image
Expand Down
2 changes: 1 addition & 1 deletion src/components/FeaturedPeopleSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function peopleVariantC(props) {
}
const middleIndex = Math.floor(people.length / 2);
const peopleLeft = people.slice(0, middleIndex);
const peopleRight = people.slice(-middleIndex);
const peopleRight = people.slice(middleIndex, people.length);
return (
<div className={classNames('grid', 'gap-x-6', 'gap-y-12', 'sm:grid-cols-2', { 'mt-12': props.title || props.subtitle })} data-sb-field-path=".people">
{peopleLeft.length > 0 && <div className="sm:mt-32">{peopleListVariantC(peopleLeft)}</div>}
Expand Down